This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: troubles with conditional install using automake


Stepan Kasal <kasal@ucw.cz> 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, schwab@suse.de
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."



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]