[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: troubles with conditional install using automake

From: Andreas Schwab
Subject: Re: troubles with conditional install using automake
Date: Wed, 01 Dec 2004 16:38:40 +0100
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

Stepan Kasal <address@hidden> 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 Schwab, SuSE Labs, address@hidden
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

[Prev in Thread] Current Thread [Next in Thread]