$(eval ..) in conditional

"Kiril Serebnik" <[email protected]>
Newsgroups gmane.comp.gnu.make.windows
Message-ID <[email protected]>
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

_______________________________________________
Make-w32 mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/make-w32
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.