diff options
author | Alan Pearce | 2017-03-24 21:22:27 +0100 |
---|---|---|
committer | Alan Pearce | 2017-03-24 21:22:27 +0100 |
commit | bbb26322199d41171595bff6d073bda1fa1fa62c (patch) | |
tree | 799f160f60327a1b026fd9f4065636e611ccafb0 /emacs/.emacs.d/Makefile | |
parent | 0c4343e413bbc922954b417a639c60dfa007a0da (diff) | |
parent | 53f50286e177abb9d1ac4a7c239dcbcc3fed63b7 (diff) | |
download | dotfiles-bbb26322199d41171595bff6d073bda1fa1fa62c.tar.lz dotfiles-bbb26322199d41171595bff6d073bda1fa1fa62c.tar.zst dotfiles-bbb26322199d41171595bff6d073bda1fa1fa62c.zip |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'emacs/.emacs.d/Makefile')
-rw-r--r-- | emacs/.emacs.d/Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/emacs/.emacs.d/Makefile b/emacs/.emacs.d/Makefile new file mode 100644 index 0000000..3d965e4 --- /dev/null +++ b/emacs/.emacs.d/Makefile @@ -0,0 +1,22 @@ +define EMACS_TANGLE +(progn\ + (setq vc-follow-symlinks nil)\ + (find-file \"init.org\")\ + (require 'ob-tangle)\ + (org-babel-tangle nil \"init.el\")) +endef + +# The first target is the default. `all` is typically defined here. +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 + +clean: + rm init.el init.elc |