help-make
[Top][All Lists]
Advanced

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

Re: question about Circular dependency


From: John Graham-Cumming
Subject: Re: question about Circular dependency
Date: Thu, 16 Mar 2006 13:42:14 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040208 Thunderbird/0.5 Mnenhy/0.6.0.104

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/




reply via email to

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