diff options
author | Alan Pearce | 2017-08-06 09:23:14 +0200 |
---|---|---|
committer | Alan Pearce | 2017-08-06 09:23:14 +0200 |
commit | be62cbb6aa92d2f788fd9449152156076151ca1f (patch) | |
tree | 95e15896024203524f68966d3e2f5b626b2b8284 /emacs/.emacs.d/Makefile | |
parent | d160fda17634bf780c53e38e2ad895ebd15a2e1e (diff) | |
parent | 4c61a4a89c0a1613d6979a4df64ea1c2498eddaa (diff) | |
download | nixfiles-be62cbb6aa92d2f788fd9449152156076151ca1f.tar.lz nixfiles-be62cbb6aa92d2f788fd9449152156076151ca1f.tar.zst nixfiles-be62cbb6aa92d2f788fd9449152156076151ca1f.zip |
Merge branch 'master' of ssh://alanpearce.eu/dotfiles
Diffstat (limited to 'emacs/.emacs.d/Makefile')
-rw-r--r-- | emacs/.emacs.d/Makefile | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/emacs/.emacs.d/Makefile b/emacs/.emacs.d/Makefile index 7741ef3e..71415d56 100644 --- a/emacs/.emacs.d/Makefile +++ b/emacs/.emacs.d/Makefile @@ -1,11 +1,4 @@ -define EMACS_TANGLE -(progn\ - (package-refresh-contents nil)\ - (setq vc-follow-symlinks nil)\ - (find-file \"init.org\")\ - (require 'ob-tangle)\ - (org-babel-tangle nil \"init.el\")) -endef +EMACS := ${NIX_LINK}/bin/emacs # The first target is the default. `all` is typically defined here. all: init.elc @@ -13,11 +6,8 @@ all: init.elc # These targets don't pertain to files .PHONY: all clean -init.el: - @emacs --batch --no-init-file --eval "$(EMACS_TANGLE)" --kill - init.elc: init.el - @emacs --batch --no-init-file --funcall batch-byte-compile init.el + $(EMACS) --batch --no-init-file --funcall batch-byte-compile init.el clean: - rm init.el init.elc + rm init.elc |