make-w32
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

$(eval ..) in conditional


From: Kiril Serebnik
Subject: $(eval ..) in conditional
Date: Mon, 24 Dec 2007 17:47:07 +0200

Hi all.
 
All my attempts to put function $(eval ...) (any kind of usage), within conditionals (ifeq ... endif), finishing up with 'missing 'endif'' error. Looks like a bug in the make itself. Any ideas of how to pass through?
A piece of code for reference
 
define FOO
AA = BB
endef
 
ifeq ($(BAR),$(empty))
   $(eval $(FOO))
endif
 
.PHONY: all
 
all:
       @echo $(AA)
RESULT::
 
test.mak:6: *** missing `endif'.  Stop.

--
Regards,
Kiril

reply via email to

[Prev in Thread] Current Thread [Next in Thread]