[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: question about Circular dependency
From: |
PATTON, BILLY \(SBCSI\) |
Subject: |
RE: question about Circular dependency |
Date: |
Thu, 16 Mar 2006 06:46:12 -0600 |
Thanks
-----Original Message-----
From: John Graham-Cumming [mailto:address@hidden On Behalf Of John
Graham-Cumming
Sent: Thursday, March 16, 2006 6:42 AM
To: PATTON, BILLY (SBCSI)
Cc: address@hidden
Subject: Re: question about Circular dependency
PATTON, BILLY (SBCSI) wrote:
> gmake: Circular ldb <- ldb dependency dropped.
> Here is the makefile
> __BEGIN__
> proj := lde ldg ldm ldf ldw lbf ldb
>
> .PHONY : all ${proj}
>
> define dummy_template
> $(1): ; @echo $(1)
> endef
>
> all : ${proj}
>
> $(foreach var,$(proj),$(eval $(call dummy_template,$(var))))
>
> $(filter ldb,${proj}) : ldb
> __END__
>
> I was under the impression that the filter would remove ldb from
> the proj list and not have the circular dependencies.
You need to use filter-out instead of filter.
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/