[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 3.81 problem with $(eval function
From: |
ali hagigat |
Subject: |
Re: 3.81 problem with $(eval function |
Date: |
Mon, 14 Mar 2011 16:02:45 +0330 |
I appreciate Mr.Smith.
But why 1111 is not a legal makefile line? Please consider this:
var1=1111
e12:
echo $(call var1)
/root/makefiles_examples> make -f makefile23
echo 1111
1111
On Mon, Mar 14, 2011 at 3:17 PM, Paul Smith <address@hidden> wrote:
> 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
>
>