diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3947888 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +SRCFILES:=$(shell find src/pages/ -type f -name '*.php') +HTMLTARGETS:=$(SRCFILES:src/pages/%.php=build/%.html) + +.PHONY: build/static + +all: $(HTMLTARGETS) $(STATICFILES) build/static + +build/static: + rsync -rupE src/static build/ + +build/%.html: src/pages/%.php src/template.php + @mkdir -p $(dir $@) + php expand.php < $< > $@ + +clean: + rm -Rf build |