|
From: | gk |
Subject: | Re: -n option executes commands; bug?" |
Date: | Mon, 23 Jun 2003 15:03:43 -0700 |
At 04:40 PM 6/23/2003 -0400, Paul D. Smith wrote:
The `-n', `-t', and `-q' options do not affect command lines that begin with `+' characters or contain the strings `$(MAKE)' or `${MAKE}'. Note that only the line containing the `+' character or the
So, to make sure rules NEVER get executed with -n, the solution is: remove $(MAKE) from the rule
#Makefile define cmd $(MAKE) -p $(1) endef foo: @$(call cmd,$@) 1>$@ #eof Thanks, - Greg Keraunen http://www.xmake.org
[Prev in Thread] | Current Thread | [Next in Thread] |