summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 56032a2..46bf935 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,19 @@
all: install-deps build upload
+notes/static:
+ mkdir -p $@
+
install-deps:
emacs --batch --load packages.el
-build:
+build: | notes/static
emacs --batch --load publish.el --funcall org-publish-all
upload:
rsync --rsh="ssh -o StrictHostKeyChecking=no" -av public/ "notes@leika.ymhg.org:/var/www/notes"
-.PHONY: all build install-deps upload
+clean:
+ rm -rf notes/static
+ rm -rf public
+
+.PHONY: all build install-deps upload clean