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-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make