> From: "Mark Galeck (CW)" <[email protected]> > 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. _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
