]> mj.ucw.cz Git - temple.git/blob - example/Makefile
Added an example and Temple::Links from MJ's home page.
[temple.git] / example / Makefile
1 .PHONY: all clean
2
3 DEST=.
4 PAGES := $(addprefix $(DEST)/,$(patsubst %.thtml,%.html,$(shell find . -name "*.thtml" | sed "s@^./@@")))
5 DEPS := $(wildcard template/*.t)
6
7 all: $(PAGES)
8
9 clean:
10
11 $(DEST)/%.html: %.thtml $(DEPS)
12         @echo $< -\> $@
13         @bin/temple -o $@.new -e "@[\$$destdir='$(DEST)'; \$$destpath='$@'; \$$srcpath='$<']" template/prolog.t $<
14         @bin/htmlcheck $@.new
15         @bin/newer $@