Refactor Makefile a bit, and add `install` and `uninstall` rule.