help-make
[Top][All Lists]
Advanced

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

Re: a possible make parsing bug in complicated foreach function define?


From: Boris Kolpackov
Subject: Re: a possible make parsing bug in complicated foreach function define?
Date: Mon, 24 May 2004 15:49:40 +0000 (UTC)
User-agent: nn/6.6.5+RFC1522

Sandy Currier <address@hidden> writes:

> define SECTION_7_MODULE_ACCUMULATE_BLOCK
> # $(1) = dira/dirb (parent directory)
> # $(2) = dira/dirb/dirc (this directory)
> # accumulators
> $$(foreach platform,$(PLATFORMS),$(2)|ALL_CFILES_$$(platform) := 
> $$(_LOCAL_CFILES_$$(platform)) $$($(2)|ALL_CFILES_$$(platform)))
> endef

`|' marks beginning of order-only prerequisites just as `:' marks 
beginning of normal prerequisites. So

dira/dirb/dirc|ALL_CFILES_I686

defines a rule with `dira/dirb/dirc' being a target and `ALL_CFILES_I686'
being an order-only prerequisite.


-boris





reply via email to

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