[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: changing MAKEFLAGS to affect current makefile

From: Paul D. Smith
Subject: Re: changing MAKEFLAGS to affect current makefile
Date: Tue, 27 Apr 2004 13:39:01 -0400

%% Regarding Re: changing MAKEFLAGS to affect current makefile; you wrote:

  >> Actually, not.  The MAKEFLAGS+=-r is not doing anything here.

  bk> I disagree. Built-in pattern rules are installed only after makefile
  bk> is read (main.c:1624). Before that (main.c:1491) flags are re-evaluated
  bk> in case they were (re)set in the makefile. I even put debug print in 
  bk> install_default_implicit_rules to make sure ;-).

That may be true, but it doesn't matter because the setting of the
MAKEFLAGS variable inside the makefile doesn't actually set the
internal variables make uses to decide whether or not -r was given.

I ran your makefile with "make -pq" and compared the output to what I
get when I use "make -rpq", and the output is very different...

 Paul D. Smith <address@hidden>          Find some GNU make tips at:            
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist

reply via email to

[Prev in Thread] Current Thread [Next in Thread]