From: Frederik Vanrenterghem Date: Thu, 28 Dec 2023 13:35:38 +0000 (+0800) Subject: Voeg Makefile voor website ontplooiing toe. X-Git-Url: http://git.vanrenterghem.biz/www2.vanrenterghem.biz.git/commitdiff_plain/091f695c763bd4f45e7f6ea0ba6faaa010487995 Voeg Makefile voor website ontplooiing toe. --- 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/