blob: 0d60cb77e8c92d266e298c27e73b650a663e1c87 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
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
|