[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: $(eval ) and $(shell )
From: |
CHEN Cheng |
Subject: |
Re: $(eval ) and $(shell ) |
Date: |
Wed, 8 Jul 2009 16:33:38 +0800 |
User-agent: |
Mutt/1.5.17 (2007-11-01) |
On Fri, Jul 03, 2009 at 03:15:18PM -0600, Philip Guenther wrote:
> On Fri, Jul 3, 2009 at 12:03 AM, CHEN Cheng<address@hidden> wrote:
> > On Fri, Jul 03, 2009 at 02:55:53PM +1000, address@hidden wrote:
...cut...
> Well, not quite. $(eval) doesn't get a pass of its own. Instead, it
> results in make going back and redoing an earlier step on new text.
>
> The order is more like
>
> 1) read the makefile, performing immediate expansions (per "3.9 How
> `make' Reads a Makefile") as they are encountered. This includes all
> processing of conditionals (ifdef, etc) and includes. Note that
> top-level variable expansions, such as the use of $(eval) in the
> original post, are performed at this point.
You are right, Philip. I should have read the manual twice before
I proposed the 'analysis', Oh I'm sorry.
To fix this mental bug essentially, I have started reading the source
code, but it'd take a long time I guess.
Best regards,
-Cheng