blob: 83fe1ae18dac6d87b47657a9d3f177da269e9a7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
SRCFILES:=$(shell find src/pages/ -type f -name '*.php')
HTMLTARGETS:=$(SRCFILES:src/pages/%.php=build/%.html)
.PHONY: build/static publish
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
publish:
neocities push build
publish-http:
rsync -avh ./build/ hozyro-srv:/var/www/hozyro --delete
publish-all: publish publish-http
|