]> git.vanrenterghem.biz Git - www2.vanrenterghem.biz.git/commitdiff
Voeg Makefile voor website ontplooiing toe.
authorFrederik Vanrenterghem <frederik@vanrenterghem.biz>
Thu, 28 Dec 2023 13:35:38 +0000 (21:35 +0800)
committerFrederik Vanrenterghem <frederik@vanrenterghem.biz>
Thu, 28 Dec 2023 13:35:38 +0000 (21:35 +0800)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..5a94119
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,17 @@
+# Makefile for www.vanrenterghem.biz
+
+.PHONY: all publish rebuild
+
+all: publish rsync
+
+publish: maak-website.el
+       @echo "Publishing... only changed files."
+       emacs --batch --load maak-website.el --funcall org-publish-all
+
+rebuild: maak-website.el
+       @echo "Publishing... total rebuild."
+       emacs --batch --load maak-website.el --eval='(org-publish "website" t)'
+
+rsync:
+       @echo "rsync published site to niihau."
+       rsync --human-readable --archive --verbose target/ --rsh="ssh" frederik@niihau.vanrenterghem.biz:/srv/www2.vanrenterghem.biz/