diff options
Diffstat (limited to '.emacs.d/Makefile')
-rw-r--r-- | .emacs.d/Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/.emacs.d/Makefile b/.emacs.d/Makefile new file mode 100644 index 0000000..37c1f3f --- /dev/null +++ b/.emacs.d/Makefile @@ -0,0 +1,21 @@ +EMACS ?= emacs +EMACS_ARGUMENTS ?= -Q + +tangle-init: init.el +init.el: init.org + @$(EMACS) $(EMACS_ARGUMENTS) \ + --batch --load org \ + --eval '(org-babel-tangle-file "init.org")' 2>&1 + +build-init: + @$(EMACS) $(EMACS_ARGUMENTS) \ + --batch -l init.el --eval '(a/build-init)' 2>&1 + +ti: tangle-init +bi: build-init + +clean: FORCE + @rm -f init.elc + +.PHONY: clean tangle-init build-init +.FORCE: |