Stepan Kasal <[EMAIL PROTECTED]> writes:

> Hi,
>
> while I am not able to address your main problem, I'd like to address one
> misunderstanding of the make language:
>
> On Wed, Dec 01, 2004 at 03:29:10PM +0100, Guillaume Rousse wrote:
>> initrd_SCRIPTS is defined to $(INITRD) at the beginning of the Makefile, 
>> while INITRD is defined at the end of the Makefile, with other 
>> conditional variables, and thus appears empty when it is evaluated.
>
> No, make doesn't work this way; consider the makefile:
>
> A = $(BB)
>
> e:
>         echo $(A)
>
> BB=x
>
>
> Then ``make'' runs ``echo x''

But when $(A) appears on the dependency list of e, for example, it will be
expanded already while the makefile is being read in.

Andreas.

-- 
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstra�e 5, 90409 N�rnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Reply via email to