"Eric Lilja" <[EMAIL PROTECTED]> wrote:
> $ make CXXFLAGS+='-DFRIEND
> but instead of adding -DFRIEND to CXXFLAGS, it replaced it...

When I did some experiments with this I found the same:

-8<---------------------------
TEST += world
 
all:
        echo $(TEST)
-8<---------------------------

$ make
echo world
world
$ make TEST=hello
echo hello
hello
$ make TEST+=hello
echo hello
hello

So I had to use an extra variable:

-8<---------------------------
TEST2 += $(TEST) world

all:
        echo $(TEST2)
-8<---------------------------

$ make
echo  world
world
$ make TEST=hello
echo hello world
hello world

regards Henrik
-- 
The address in the header is only to prevent spam. My real address is:
hc8(at)uthyres.com Examples of addresses which go to spammers:
[EMAIL PROTECTED] [EMAIL PROTECTED]

_______________________________________________
help-gnu-utils mailing list
help-gnu-utils@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-utils

Reply via email to