help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: a question about $(call function


From: Paul Smith
Subject: Re: a question about $(call function
Date: Sun, 12 Jun 2011 16:37:40 -0400

On Sat, 2011-06-11 at 14:49 +0430, ali hagigat wrote:
> In the following example with make, 3.81 why var2 is aba?
> 
> kk=$(1)00
> aba=$(1)11
> var1=kk
> $(call var1)=aba
> var2=$(call $(call var1),pp)
> all: ;
> $(warning var2=$(var2))
> 
> makefile27:7: var2=aba

Because you have "$(call var1)=aba" and $(call var1) expands kk, so this
statement expands to "kk=aba".

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.net
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

[Prev in Thread] Current Thread [Next in Thread]