Re: $(eval ..) in conditional

Greg Chicares <[email protected]>
Newsgroups gmane.comp.gnu.make.windows
Message-ID <[email protected]>
On 2007-12-24 15:47Z, Kiril Serebnik wrote:
> 
> define FOO
> AA = BB
> endef
> 
> ifeq ($(BAR),$(empty))
>    $(eval $(FOO))
> endif
> 
> .PHONY: all
> 
> all:
>        @echo $(AA)
> RESULT::
> 
> test.mak:6: *** missing `endif'.  Stop.

Instead of an error message, I get "BB". Please copy and paste
the output you get from make '--version'.
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.