Document -n vs. $(MAKE) separate line safety

2021-04-09 Thread 積丹尼 Dan Jacobson
On (info "(make) MAKE Variable") please warn: Remember that anything else you put *on the same line* with $(MAKE) on it will also get executed despite -n: w: beep; beep; beep; $(MAKE) qq will beep in the middle of the night, despite $ make -n w If you don't want $ make x to suddenly invo

clearer Call Function example

2021-04-09 Thread 積丹尼 Dan Jacobson
In (info "(make) Call Function") One would assume reverse = $(2) $(1) foo = $(call reverse,a,b) should be reverse = $(2) $(1) foo = $(call $(reverse),a,b) but make does that $ stuff for us automatically, which makes us think maybe it is also doing the same for a and b. B

Document nested -n bomb diffusion

2021-04-09 Thread 積丹尼 Dan Jacobson
(info "(make) MAKE Variable") still just says The special feature makes this do what you want: whenever a recipe line of a rule contains the variable 'MAKE', the flags '-t', '-n' and '-q' do not apply to that line. Recipe lines containing 'MAKE' are executed normally despite th

Document -n echoed vs. echoed and executed commands

2021-04-09 Thread 積丹尼 Dan Jacobson
Some -n output is just echoed commands. Some of it is actually echoed and executed commands. Document exactly how to tell the difference, or document that there is no way.