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
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make