25 lines
533 B
Makefile
25 lines
533 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/
|
|
rsync -av --delete srv/ ssh.alogoulogoi.com:/srv/www.alogoulogoi.com
|