1
0
Fork 0
www/Makefile

23 lines
489 B
Makefile

.PHONY: *
build:
./build.py out/ --draft
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/
pubdate:
sed -i "s/pubdate: now/pubdate: $$(date -Isec)/" src/blog/**/*.md
upload:
./build.py srv/
pagefind --site srv/
rsync -av srv/* ssh.alogoulogoi.com:/srv/www.alogoulogoi.com