From dbc0aabdc1fe0faeff873a06a807279825173ed4 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Fri, 5 Aug 2016 01:42:39 +0200 Subject: [PATCH] Add Makefile for Emacs config --- emacs/.emacs.d/GNUmakefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 emacs/.emacs.d/GNUmakefile 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 \"$<\")"