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: do-echo
var2: VAR=bar
var2: do-echo
do-echo:
@echo VAR=$(VAR) VAR2=$(VAR2) VAR3=$(VAR3)
_______________________________________________ Bug-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-make
