summaryrefslogtreecommitdiffstats
path: root/.emacs.d/Makefile
blob: 37c1f3ff98dec34972b303ca2994666918701532 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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: