Hi,
please consider the following makefile:
ifeq (0,$(MAKELEVEL))
all: ; $(MAKE) --no-print-dir
else
$(foreach i,all,\
$(eval $(i): ; @echo $(MAKEFLAGS))\
)
endif
If this is called with e.g.
make -j
$(MAKEFLAGS) _does_ contain the --no-print-dir flag, but it seems that it
doesn't contain the -j flag.
But this may be fixed by putting an additional $ in front of $(MAKEFLAGS).
I could have lived with the insight that the additional $ is generally
necessary due to the eval,
but why then was it _not_ necessary to print the --no-print-dir?
Thanks for any clues on when escaping is required,
Chris
P.S.: I'm still using V3.81
_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make