I haven't tried it, but I'm thinking of something like:
# bootstrap.mk
ifeq ($(MAKELEVEL),0)
# re-exec make with new MAKEFLAGS
endifthen set MAKEFLAGS=bootstrap.mk.
Noel
Boris Kolpackov wrote:
Hi Noel,
It's also just occurred to me that, using MAKEFILES and the "gmake self wrapper" trick, you could get what you want without having to patch make. OTOH, it is a bit more complicated even though the complication is hidden.
How is it hidden? In every makefile you have two write something like this:
if <MAKEFLAGS need adjustment> include make-re-executor.make
else
# your code here
endif
This is ugly. If I needed this feature in a project that otherwise uses vanilla make I would think twice before patching make. But in my case Rubicon is already crossed.
-boris
_______________________________________________ Help-make mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/help-make
