Please see the makefile attached.
by running it it outputs:
VAR=foo VAR2=bar VAR3=foo
but I think VAR2 should be foo.
Bug or do I misunderstand something?
thanks,
Istvan
ifeq ($(VAR),foo)
VAR2=foo
else
VAR2=bar
endif
VAR3=$(VAR)
all:
make var1
make var2
var1: VAR=foo
var1
Hi,
2009/5/7 Martin Dorey :
> That's only a small fraction of what I see, with make-3.81. This is what I
> see:
> [...]
> VAR=foo VAR2=bar VAR3=foo
But here VAR2 should be "foo" As VAR=foo, the ifeq then-branch
should set it to foo, but it goes into the else branch - which I think
it shouldn
2009/5/7 Martin Dorey :
>> But here VAR2 should be "foo"!
>
> No, it shouldn't, for exactly the same reason that VAR2 isn't foo here:
>
> mart...@whitewater:~/tmp/bug-make-2009-05-07$ make var1
> VAR=foo VAR2=bar VAR3=foo
> mart...@whitewater:~/tmp/bug-make-2009-05-07$
>
> Despite the number of exc
2009/5/8 Martin Dorey :
> [...]
Ah, now I see. Thanks for the patience, you've really helped me a lot!
Istvan
___
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make