[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: recursively expanded variables as functions
From: |
Ken Smith |
Subject: |
Re: recursively expanded variables as functions |
Date: |
Mon, 23 May 2005 11:38:58 -0400 |
User-agent: |
Mutt/1.5.9i |
On Fri, May 20, 2005 at 11:43:04PM -0400, Paul D. Smith wrote:
> %% Ken Smith <address@hidden> writes:
>
> ks> I was under the impression that I could count on being able to
> ks> call a function before its definition because of the recursive
> ks> expansion of variables. Here is an example.
>
> It's not only the type of variable that determines when it's expanded,
> but also where the variable appears in the makefile. Some areas in a
> makefile call for immediate expansion: basically any area which needs to
> be expanded in order for the makefile to be parsed.
This makes perfect sense.
Thank you for the explanation,
Ken
>
> You can find a complete description of which areas of a makefile are
> expanded immediately and which are deferred in the GNU make manual,
> section "How 'make' Reads A Makefile".
>
> --
> -------------------------------------------------------------------------------
> 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