[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: a possible make parsing bug in complicated foreach function define?
From: |
Paul D. Smith |
Subject: |
Re: a possible make parsing bug in complicated foreach function define? |
Date: |
Mon, 24 May 2004 12:05:41 -0400 |
%% Sandy Currier <address@hidden> writes:
sc> At least a dump of the database shows that the function block ends
sc> up defining a target rule as opposed to an immediate variable
sc> definition.
Boris is correct about "|" appearing in a prerequisites list but you
don't appear to be using it that way in the example makefile you
provide... maybe you are doing so later on?
sc> define SECTION_7_MODULE_ACCUMULATE_BLOCK
sc> # $(1) = dira/dirb (parent directory)
sc> # $(2) = dira/dirb/dirc (this directory)
sc> # accumulators
sc> $$(foreach platform,$(PLATFORMS),$(2)|ALL_CFILES_$$(platform) :=
sc> $$(_LOCAL_CFILES_$$(platform)) $$($(2)|ALL_CFILES_$$(platform)))
sc> endef
This by itself looks fine to me. I think it all depends on how you're
using this variable. Can you provide a _complete_, but small, makefile
and example of what it's doing that you don't think it should be?
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist