aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorYuchen Pei <me@ypei.me>2021-06-18 12:58:44 +1000
committerYuchen Pei <me@ypei.me>2021-06-18 12:58:44 +1000
commit147a19e84a743f1379f05bf2f444143b4afd7bd6 (patch)
tree3127395250cb958f06a98b86f73e77658150b43c /Makefile
parent4fa26fec8b7e978955e5630d3f820ba9c53be72c (diff)
Updated.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..4531888
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,20 @@
+# Makefile for myblog
+
+.PHONY: all publish publish_no_init
+
+all: publish
+
+publish: publish.el
+ @echo "Publishing... with current Emacs configurations."
+ emacs --batch --load publish.el --funcall org-publish-all
+
+publish_no_init: publish.el
+ @echo "Publishing... with --no-init."
+ emacs --batch --no-init --load publish.el --funcall org-publish-all
+
+clean:
+ @echo "Cleaning up.."
+ @rm -rvf *.elc
+ @rm -rvf site
+ @rm -rvf ~/.org-timestamps/*
+ @rm -rvf pages/blog.org