diff --git a/emacs/Makefile b/emacs/Makefile index 51d9c84..e641477 100644 --- a/emacs/Makefile +++ b/emacs/Makefile @@ -11,9 +11,12 @@ EMACS=emacs include ../dotfiles2.mk -install: init.el +install: init.elc init.el: init.org $(EMACS) -Q -batch \ -eval "(progn (require 'org) (require 'ob-tangle) \ (org-babel-tangle-file \"$^\"))" + +init.elc: init.el + $(EMACS) -Q -batch -eval "(byte-compile-file \"init.el\")"