For GNU make 3.80 on linux, I have the following in my makefile:
helloworld:
$(eval NAME = hello)
helloworld_dev: helloworld dev
dev:
ifneq ($(NAME),)
echo "hi"
else
echo "hey"
endif
At the command prompt, I type:
make helloworld_dev
How come I keep getting "hey" instead of "hi"? Hasn't NAME been
initialised with the eval function? What am I doing wrong?
Thanks
Thierry
_______________________________________________
help-gnu-utils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gnu-utils