.PHONY: all clean DEST=. PAGES := $(addprefix $(DEST)/,$(patsubst %.thtml,%.html,$(shell find . -name "*.thtml" | sed "s@^./@@"))) DEPS := $(wildcard template/*.t) all: $(PAGES) clean: $(DEST)/%.html: %.thtml $(DEPS) @echo $< -\> $@ @bin/temple -o $@.new -e "@[\$$destdir='$(DEST)'; \$$destpath='$@'; \$$srcpath='$<']" template/prolog.t $< @bin/htmlcheck $@.new @bin/newer $@