From 3b9bb27ab9179334fe3c96ae8dbc249061649aff Mon Sep 17 00:00:00 2001 From: Jonas Kohl Date: Fri, 19 Jul 2024 13:09:00 +0200 Subject: Initial commit --- Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3