[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: looking for help with auto creating rules with eval hierarchically G
From: |
PATTON, BILLY \(SBCSI\) |
Subject: |
RE: looking for help with auto creating rules with eval hierarchically GOT IT TO WORK :) :) :) |
Date: |
Thu, 16 Mar 2006 08:58:36 -0600 |
PROJECTS := lde ldg ldm ldf ldw lbf ldb
BB_lde := a
BB_ldg := b c
BB_ldm := d e f
BB_ldf := g h i j
BB_ldw := k l n m o
BB_lbf := p q r s t u
BB_ldb := v w x y z aa ab
.PHONY : all BB_lde BB_ldg BB_ldm BB_ldf BB_ldw BB_lbf BB_ldb
define bb_template
$(1): ; @echo $(1)
endef
BBlist := $(foreach proj,$(PROJECTS),$(foreach bb,$(addprefix
BB_,$(proj)),$(shell echo $(bb))))
all : ${BBlist}
$(foreach proj,$(PROJECTS),$(foreach bb,$(addprefix BB_,$(proj)),$(eval
$(call bb_template,${bb}))))
-----Original Message-----
From: John Graham-Cumming [mailto:address@hidden On Behalf Of John
Graham-Cumming
Sent: Thursday, March 16, 2006 8:50 AM
To: PATTON, BILLY (SBCSI)
Cc: address@hidden
Subject: Re: looking for help with auto creating rules with eval
hierarchically
PATTON, BILLY (SBCSI) wrote:
> I shortened your foreach statement to
> $(foreach proj,$(PROJECTS), $(eval $(call bb_template,$(BB_$(proj)))))
>
> Doesn't this eliminate one foreach loop?
It does, but what do you intend it to do now. This ends up calling
bb_template with the value of each BB_ variable which is a list.
John.
--
John Graham-Cumming
address@hidden
Home: http://www.jgc.org/
Blog: http://www.jgc.org/blog/
POPFile: http://getpopfile.org/
GNU Make Standard Library: http://gmsl.sf.net/
GNU Make Debugger: http://gmd.sf.net/
Fast, Parallel Builds: http://www.electric-cloud.com/
Sign up for my Spam and Anti-spam Newsletter
at http://www.jgc.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- RE: looking for help with auto creating rules with eval hierarchically GOT IT TO WORK :) :) :),
PATTON, BILLY \(SBCSI\) <=