37c1f3ff98dec34972b303ca2994666918701532
[~bandali/configs] / Makefile
1 EMACS ?= emacs
2 EMACS_ARGUMENTS ?= -Q
3
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:
11 @$(EMACS) $(EMACS_ARGUMENTS) \
12 --batch -l init.el --eval '(a/build-init)' 2>&1
13
14 ti: tangle-init
15 bi: build-init
16
17 clean: FORCE
18 @rm -f init.elc
19
20 .PHONY: clean tangle-init build-init
21 .FORCE: