Made Makefile smarter... Mostly.