Build: Refactor Makefile to allow out-of-source builds and avoid clobbering other repos.