2023-09-11 22:38:24 +00:00
|
|
|
.PHONY: *
|
|
|
|
|
|
|
|
build:
|
2023-09-20 04:29:41 +00:00
|
|
|
./build.py out/
|
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:
|
|
|
|
sed -i "s/pubdate: now/pubdate: $$(date -Isec)/" src/blog/*.md
|
|
|
|
|
|
|
|
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
|