help-make
[Top][All Lists]
Advanced

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

Re: 3.81 problem with $(eval function


From: Paul Smith
Subject: Re: 3.81 problem with $(eval function
Date: Mon, 14 Mar 2011 07:47:05 -0400

On Mon, 2011-03-14 at 14:20 +0330, ali hagigat wrote:
> I tested make 3.81 with:
> var1=1111
> e12:
>       @echo $(eval $(call var1))
> 
> /root/makefiles_examples> make -f makefile23
> makefile23:3: *** missing separator.  Stop.

Correct. "1111" is not a legal makefile line.

> But @echo $( eval $(call var1)) is OK. One space was added after "$("
> and before "eval".

Correct.  Adding a space makes this not a function call anymore.

-- 
-------------------------------------------------------------------------------
 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]