Makefile: Rewrite to support mtimes and dependencies

The previous version required you to `make && make test` and had actual
targets marked as phonies.
Merge pull request #7 from qute/fix/makefile

Makefile: Rewrite to support mtimes and dependencies