aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2016-08-05 01:42:39 +0200
committerGravatar Tom Willemse2016-08-05 01:42:39 +0200
commitdbc0aabdc1fe0faeff873a06a807279825173ed4 (patch)
treebd2a7e78293d89954caf8524f065a3dc6a7d5654
parent419204ba3418c1445af2ded7c21331e0056bb07f (diff)
downloadnew-dotfiles-dbc0aabdc1fe0faeff873a06a807279825173ed4.tar.gz
new-dotfiles-dbc0aabdc1fe0faeff873a06a807279825173ed4.zip
Add Makefile for Emacs config
-rw-r--r--emacs/.emacs.d/GNUmakefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/emacs/.emacs.d/GNUmakefile b/emacs/.emacs.d/GNUmakefile
new file mode 100644
index 0000000..e6136b3
--- /dev/null
+++ b/emacs/.emacs.d/GNUmakefile
@@ -0,0 +1,12 @@
+EMACS = /usr/bin/emacs
+
+init.elc:
+
+%.el: %.org
+ $(EMACS) -batch -eval "(progn \
+ (package-initialize) \
+ (require 'ob-tangle) \
+ (org-babel-tangle-file \"$<\" \"$@\" \"emacs-lisp\"))"
+
+%.elc: %.el
+ $(EMACS) -batch -eval "(byte-compile-file \"$<\")"