CONTENTDIR = content STYLEDIR = css IMGDIR = img TARGETDIR = pub FRAMEFILES = frame.html footer.html sitemap compose.sh .PHONY: all clean $(TARGETDIR)/%.html: $(CONTENTDIR)/% $(FRAMEFILES) ./compose.sh $< $@ $(TARGETDIR)/%.css: $(STYLEDIR)/%.css cp $< $@ $(TARGETDIR)/%: $(IMGDIR)/% cp $< $@ ./create_thumbnail.sh $< all: $(shell ls $(CONTENTDIR)/|grep -v '~$$'|sed 's/^/$(TARGETDIR)\//'|sed 's/$$/.html/') \ $(shell ls $(IMGDIR)/|grep -v '~$$'|sed 's/^/$(TARGETDIR)\//') \ $(shell ls $(STYLEDIR)/|grep '.css$$'|sed 's/^/$(TARGETDIR)\//') clean: rm -rf pub/*.html rm -rf pub/*.{jpg,jpeg,gif,png} rm -rf pub/*.css # vim: noet