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 [EMAIL PROTECTED] 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/ _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
