[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: need help understanding $(eval ...) variable expansion
From: |
Paul D. Smith |
Subject: |
Re: need help understanding $(eval ...) variable expansion |
Date: |
Tue, 26 Nov 2002 00:48:29 -0500 |
%% gk <address@hidden> writes:
g> I think my problem was in understanding how $(call ...) works. It
g> seems that 'call' does not do any evaluation or variable
g> assignment; only expansion.
Precisely. The _only_ make function that evaluates its arguments as if
they were makefile statements is eval.
Call merely pushes a new variable context, assigns the arguments to $1,
etc., then looks up the value of the variable specified as the first
argument and expands it in that new context.
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist