Make Makefile a bit smarter