%% Jaye Speaks <[EMAIL PROTECTED]> writes: js> One solution that I found that works (with help from Paul):
This is not a good solution, though. js> BUILDS := _CUST1 _CUST2 _CUST3 _CUST4 js> SRCDIR := src js> SRCDIRFILES := $(wildcard $(SRCDIR)/*.htmlpp) js> .PHONY : all $(BUILDS) js> all : $(BUILDS) js> $(BUILDS) : $(SRCDIRFILES) js> $(foreach F,$(SRCDIRFILES),$(PP) -D$@ $(F) > $(subst js> $(SRCDIR),$@,$(patsubst %.htmlpp,%.html,$(F)));) This will rebuild every file if any file changes. I don't believe that's what you want... I'm assuming you want to rebuild only those files that changed. Heck, if that's all you want to do you might as well write a shell script instead of using make :). -- ------------------------------------------------------------------------------- Paul D. Smith <[EMAIL PROTECTED]> Find some GNU make tips at: http://www.gnu.org http://make.paulandlesley.org "Please remain calm...I may be mad, but I am a professional." --Mad Scientist _______________________________________________ Help-make mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/help-make
