1
0
Fork 0
www/Makefile

26 lines
583 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:
test -e srv && rm -rf srv || true
./build.py srv/
pagefind --site srv/
ssh ssh.alogoulogoi.com rm -r /srv/www.alogoulogoi.com/*
rsync -av srv/* ssh.alogoulogoi.com:/srv/www.alogoulogoi.com