1
0
Fork 0
www/Makefile

23 lines
489 B
Makefile
Raw Normal View History

2023-09-11 22:38:24 +00:00
.PHONY: *
build:
2023-12-18 17:58:59 +00:00
./build.py out/ --draft
2023-09-17 05:01:01 +00:00
pagefind --site out/
clean:
2023-09-20 04:29:41 +00:00
test -e out && rm -rf out || true
test -e srv && rm -rf srv || true
2023-09-11 22:38:24 +00:00
watch:
2023-09-20 03:32:45 +00:00
while inotifywait -r -e modify -e move -e create -e delete build.py Makefile src/; do make build; done
2023-09-11 22:38:24 +00:00
serve:
python -m http.server --directory out/
2023-09-12 03:07:12 +00:00
2023-09-21 16:16:43 +00:00
pubdate:
2023-09-28 22:39:09 +00:00
sed -i "s/pubdate: now/pubdate: $$(date -Isec)/" src/blog/**/*.md
2023-09-21 16:16:43 +00:00
upload:
2023-09-20 04:29:41 +00:00
./build.py srv/
pagefind --site srv/
rsync -av srv/* ssh.alogoulogoi.com:/srv/www.alogoulogoi.com