Refactor Makefile, add install target