[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: foreach + define + variables ?
From: |
Harvey Chapman |
Subject: |
Re: foreach + define + variables ? |
Date: |
Thu, 6 May 2010 21:32:47 -0400 |
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)