From 091f695c763bd4f45e7f6ea0ba6faaa010487995 Mon Sep 17 00:00:00 2001 From: Frederik Vanrenterghem Date: Thu, 28 Dec 2023 21:35:38 +0800 Subject: [PATCH] Voeg Makefile voor website ontplooiing toe. --- Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 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/ -- 2.39.2