[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, 6 Apr 2004 00:30:37 -0400

%% Boris Kolpackov <address@hidden> writes:

  bk> I read the following in "Communicating Options to sub-make":

  bk> "You can also set `MAKEFLAGS' in a makefile, to specify additional 
  bk> flags that should also be in effect for that makefile."

  bk> and also

  bk> "When `make' interprets the value of `MAKEFLAGS' (either from the
  bk> environment or from a makefile), it first prepends a hyphen if the 
  bk> value does not already begin with one."

  bk> Which means that I should be able to say something like

  bk> MAKEFLAGS += -r

  bk> and all built-in implicit rules are gone. But that sounds too 
  bk> good to be true - this line has no effect on current make.
This is indeed a bug (IMO anyway), and has been for basically as long as
make has been around.  I thought there was even a bug in Savannah about

 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]