#Directory structure for web targets #Dirs for source files HTSRCDIR := $(PROJDIR)/html JSSRCDIR := $(HTSRCDIR)/js #Discover each type of object supported HTSRC := $(wildcard $(HTSRCDIR)/*.html) JSSRC := $(wildcard $(JSSRCDIR)/*.js) WEBSRC := $(HTSRC) $(JSSRC) #Translate sources into their required targets in APPDIR WEBTARG := $(patsubst $(HTSRCDIR)/%,$(DISTDIR)/%,$(WEBSRC)) #Add APPDEPS for all web objects so they must be created #at build time, before compilation of the main executable APPDEPS += $(WEBTARG) APPDIRS += $(dir $(WEBTARG)) #In Makefile, we will use WEBTARG to define rules for "making" #these targets (with a cp action) and cleaning (with rm)