[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug with new $(eval ) function
From: |
Evan Bigall |
Subject: |
Bug with new $(eval ) function |
Date: |
Sun, 25 Sep 2005 10:46:45 -0700 |
User-agent: |
Mozilla Thunderbird 0.5 (Windows/20040207) |
Consider this makefile (also attached to get the whitespace correct):
list = a b c d
#ifeq (foo,foo)
.PHONY : all
all : $(list)
define template
.PHONY : $(1)
$(1) :
echo $(1)
endef
$(foreach l,$(list),$(eval $(call template,$(l))))
#endif
With the "ifeq" commented out, this makefile works. If you uncomment
the ifeq it breaks with:
~/evan.bigall-linux-all/tools/linux/make-3.80/bin/make -n all
Makefile:16: *** missing `endif'. Stop.
/Evan
list = a b c d
ifeq (foo,foo)
.PHONY : all
all : $(list)
define template
.PHONY : $(1)
$(1) :
echo $(1)
endef
$(foreach l,$(list),$(eval $(call template,$(l))))
endif
- Bug with new $(eval ) function,
Evan Bigall <=