summaryrefslogtreecommitdiff
path: root/Makefile
blob: 394788850e4f0576ac32f967e57d10b57fa86109 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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