Add Makefile for Emacs config

This commit is contained in:
Tom Willemse 2016-08-05 01:42:39 +02:00
parent 419204ba34
commit dbc0aabdc1

View file

@ -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 \"$<\")"