Makefiles scoping, fixing newline-at-end-of-file woes