Friday, January 31, 2014

Implicit rules with Makefile

In my ongoing quest to make my builds less complex and faster, I've been going through my Makefiles and trying to learn as much as possible to simplify it and leverage Make as much as I can. To that end, I discovered something incredibly useful today that I suppose I would have known had I taken the time to read the man page for Make:

make -p


This command will list all of the implicit rules for make, which you can then use to optimize the living crap out of your Makefile.

No comments: