help-make
[Top][All Lists]
Advanced

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

Re: argument 'v=x' does not appear to work as in the manual ?


From: Eli Zaretskii
Subject: Re: argument 'v=x' does not appear to work as in the manual ?
Date: Fri, 26 Nov 2010 14:01:32 +0200

> From: "Mark Galeck (CW)" <address@hidden>
> Date: Fri, 26 Nov 2010 00:44:28 -0800
> 
> Here's the WHOLE STORY
> 
> What users wanted me to do, is to give them the ability to type
> 
> >make CFLAGS+=-foo
> 
> and what that would do, is add the value specified, to the value of CFLAGS 
> already in the makefile (I guess, speaking precisely, as it is at the end of 
> the fist pass of the make).

The usual way of letting users do that is to have a separate variable,
USER_CFLAGS, say, which users can set from the command line and which
the Makefile then adds to the value of CFLAGS.  That's much more
straightforward to implement, and you don't need any shell-level
tricks for making it work.



reply via email to

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