On May 6, 2010, at 7:55 PM, Aleksey Yakovlev wrote:

> I'm trying to understand how "foreach" interacts with "define". The fragment 
> below prints "1 2". I expected "1 2 3".... Why is the last letter missed?
> 
> define F
>   var := $(1)
>   debug += $(var)
  debug += $$(var)

> endef
> 
debug :=
> $(foreach p,1 2 3,$(eval $(call F,$p)))
> 
> all:
>     @echo $(debug)




_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to