summaryrefslogtreecommitdiffstats
path: root/.emacs.d/Makefile
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2019-04-13 19:26:19 -0400
committerAmin Bandali <bandali@gnu.org>2019-04-13 19:26:19 -0400
commit5fb7704c0f844191de7c5e4d03b059525348b5f4 (patch)
treea869cb94b55ed373b365f1a4275cc2b9f5f994c2 /.emacs.d/Makefile
parent466f433f6b3e26d0a57d377cf898a06fc1e453cc (diff)
downloadconfigs-5fb7704c0f844191de7c5e4d03b059525348b5f4.tar.gz
configs-5fb7704c0f844191de7c5e4d03b059525348b5f4.tar.xz
configs-5fb7704c0f844191de7c5e4d03b059525348b5f4.zip
emacs: move configuration to .emacs.d
Diffstat (limited to '.emacs.d/Makefile')
-rw-r--r--.emacs.d/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/.emacs.d/Makefile b/.emacs.d/Makefile
new file mode 100644
index 0000000..37c1f3f
--- /dev/null
+++ b/.emacs.d/Makefile
@@ -0,0 +1,21 @@
+EMACS ?= emacs
+EMACS_ARGUMENTS ?= -Q
+
+tangle-init: init.el
+init.el: init.org
+ @$(EMACS) $(EMACS_ARGUMENTS) \
+ --batch --load org \
+ --eval '(org-babel-tangle-file "init.org")' 2>&1
+
+build-init:
+ @$(EMACS) $(EMACS_ARGUMENTS) \
+ --batch -l init.el --eval '(a/build-init)' 2>&1
+
+ti: tangle-init
+bi: build-init
+
+clean: FORCE
+ @rm -f init.elc
+
+.PHONY: clean tangle-init build-init
+.FORCE: