1
0
Fork 0
www/Makefile

20 lines
405 B
Makefile

.PHONY: *
build:
./build.py out/
pagefind --site out/
clean:
test -e out && rm -rf out || true
test -e srv && rm -rf srv || true
watch:
while inotifywait -r -e modify -e move -e create -e delete build.py Makefile src/; do make build; done
serve:
python -m http.server --directory out/
publish:
./build.py srv/
pagefind --site srv/
rsync -av srv/* ssh.alogoulogoi.com:/srv/www.alogoulogoi.com