[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: append to/from command line variable
From: |
Paul D. Smith |
Subject: |
Re: append to/from command line variable |
Date: |
Sat, 5 Nov 2005 09:44:41 -0500 |
%% "Martin d'Anjou" <address@hidden> writes:
md> I read that it is not possible to append to a variable from the
md> command line:
md> http://lists.gnu.org/archive/html/help-make/2003-02/msg00001.html
md> How hard is it to modify the source code to acheive this anyway?
The problem is, what does it mean to append to a variable from the
command line?
When do you append it? To what value? In other words, given the
following makefile:
$(warning FOO = $(FOO))
FOO := bar
$(warning FOO = $(FOO))
FOO += biz
$(warning FOO = $(FOO))
all: FOO := boz
all: FOO += baz
all: ; @echo FOO = $(FOO) / '$$FOO' = $$FOO
What does make print out when you run:
make FOO+=foo
??
--
-------------------------------------------------------------------------------
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: append to/from command line variable,
Paul D. Smith <=