Refactor Makefile

Use dependencies.

Signed-off-by: Stephen Celis <stephen@stephencelis.com>