[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
this.
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
- Re: changing MAKEFLAGS to affect current makefile,
Paul D. Smith <=