Well, at risk of talking to myself, I figured it out > > -----Original Message----- > > From: Kristof Provost [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, August 01, 2007 1:25 PM A slightly different way > > might be: > > TARGETS := a.mak b.mak c.mak > > > > CLEANTARGETS := $(addprefix phony-clean-, $(TARGETS)) ALLTARGETS := > > $(addprefix phony-all-, $(TARGETS)) > > > > clean: $(CLEANTARGETS) > > all: $(ALLTARGETS) > > > > phony-clean-%: > > gmake -f $* clean > > > > phony-all-%: > > gmake -f $* all > > > > .PHONY: $(CLEANTARGERS) $(ALLTARGETS) > > When we declared the CLEANTARGETS and ALLTARGETS as phoney, they no longer check them against the implicit rules (per online manual section 4.6). Once I comment out the .PHONY line all works well.
Alternately replacing the implict target phony-clean-%: with the explicit target $(CLEANTARGETS): And keeping the .PHONY target works as well Dale Pennington _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
