10
GNU Make - Unconditionally run a target before any other targets
(www.bahmanm.com)
A general programming discussion community.
You may like an approach I came up with some time ago.
In my
included file that's common among myMakefiles:At the top of a
Makefilethat I want to ensure certain variables are set before it runs:I usually do these checks in sub-Makefiles to ensure someone didn't break the top level Makefile by not passing down a required macro.