help-make
[Top][All Lists]
Advanced

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

Re: Static Pattern use of function in Prereq


From: Jaye Speaks
Subject: Re: Static Pattern use of function in Prereq
Date: Tue, 17 Feb 2004 15:14:44 -0800 (PST)

One solution that I found that works (with help from Paul):

#====== MAKEFILE ======

PPFLAGS = -P
PP = cpp $(PPFLAGS)

BUILDS := _CUST1 _CUST2 _CUST3 _CUST4
SRCDIR := src

SRCDIRFILES := $(wildcard $(SRCDIR)/*.htmlpp)

.PHONY : all $(BUILDS)
all : $(BUILDS)
$(BUILDS) : $(SRCDIRFILES)
    $(foreach F,$(SRCDIRFILES),$(PP) -D$@ $(F) > $(subst
$(SRCDIR),$@,$(patsubst %.htmlpp,%.html,$(F)));)

.PHONY : dump
dump :
    @echo '$(SRCDIRFILES)'

SUBCLEAN = $(addsuffix .clean, $(BUILDS))
.PHONY : clean $(SUBCLEAN)
clean : $(SUBCLEAN)
$(SUBCLEAN) :
    -rm -rf '$(patsubst %.clean,%,$@)/*'


__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html




reply via email to

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