[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Need help on variable assignment
From: |
lamthierry |
Subject: |
Need help on variable assignment |
Date: |
24 Mar 2006 11:42:50 -0800 |
User-agent: |
G2/0.2 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Need help on variable assignment,
lamthierry <=