Commit Diff
Diff:
21816e71af4434e5031550c39d628a4a36128470
633756e85bb4b171a0516a76357bd98eaee6f86a
Commit:
633756e85bb4b171a0516a76357bd98eaee6f86a
Tree:
0b7ff5dcfc0bab008fa33ae308bd21304a663de3
Author:
Fred. Galusik <dev@galusik.fr>
Committer:
Fred. Galusik <dev@galusik.fr>
Date:
Tue Jun 30 15:25:41 2020 UTC
Message:
automate things
blob - /dev/null
blob + 5e31ed8cf0efb7c272e870f95cefec65796b7a17 (mode 644)
--- /dev/null
+++ Makefile
@@ -0,0 +1,22 @@
+PYSERVE= /usr/local/bin/python3 -m http.server
+RSYNC= /usr/bin/openrsync -e "ssh -p 6930" --rsync-path=openrsync
+
+all: clean build sync
+
+
+clean:
+ @echo "cleaning output dir..."
+ @rm output/*.html
+ @rm output/~/feeds/*
+ @rm output/~/*.html
+
+serve:
+ $(PYSERVE) --directory output
+
+build:
+ @echo "Building blog..."
+ python3 babille.py
+
+sync:
+ @echo "Syncing to boom..."
+ $(RSYNC) -arv --del output/ boom:/var/www/htdocs/galusik.fr/blog/
Frédéric Galusik