[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
basic problem with eval
From: |
Xavier Marichal |
Subject: |
basic problem with eval |
Date: |
Wed, 01 Feb 2006 20:14:44 -0800 |
User-agent: |
Mozilla Thunderbird 1.0.7 (Windows/20050923) |
Hi!
sorry to annoy everyone with such a stupid problem, but I definitely
don't understand the way eval works...
The example of the gnumake manual (section 8.8) does provide a strange
output with my version of gmake (3.79.1):
I receive:
$ make -f Makefile_eval
gcc -o server
gcc.exe: no input files
make: *** [server] Error 1
while I would have expected at least to see an attempt at generating
server.o at first...
I did therefore try a simpler example:
TEST := 0
define refine_test
TEST := 1
endef
default:
@ECHO BEFORE $(TEST)
$(eval $(call refine_test))
@ECHO AFTER $(TEST)
but surprisingly enough, I receive the feedback:
BEFORE 0
AFTER 0
while I'd have expected
BEFORE 0
AFTER 1
There must be something obvious that I miss, but can of not figure out
what...
Thanks for any hint.
Xavier
- basic problem with eval,
Xavier Marichal <=