Commit | Line | Data |
---|---|---|
c145ffd9 AB |
1 | EMACS ?= emacs |
2 | EMACS_ARGUMENTS ?= -Q | |
3 | ||
c145ffd9 AB |
4 | tangle-init: init.el |
5 | init.el: init.org | |
6 | @$(EMACS) $(EMACS_ARGUMENTS) \ | |
7 | --batch --load org \ | |
8 | --eval '(org-babel-tangle-file "init.org")' 2>&1 | |
9 | ||
10 | build-init: | |
c145ffd9 AB |
11 | @$(EMACS) $(EMACS_ARGUMENTS) \ |
12 | --batch -l init.el --eval '(a/build-init)' 2>&1 | |
13 | ||
14 | ti: tangle-init | |
15 | bi: build-init | |
efcec623 AB |
16 | |
17 | clean: FORCE | |
18 | @rm -f init.elc | |
19 | ||
20 | .PHONY: clean tangle-init build-init | |
21 | .FORCE: |