summaryrefslogtreecommitdiff
path: root/Makefile
blob: 19262471c7b1793e3e56caccc94ed3c3d5bc4a88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
emacs ?= emacs
bemacs = $(emacs) -batch -l test/elpa.el
LIBS = -L evil -L evil/lib -l evil.el -l goto-chg.el -l undo-tree.el -L . -l evil-surround.el -L test -l evil-surround-test.el

update:
	$(emacs) -batch -l test/make-update.el && \
	[ ! -d evil ] && \
	git clone --depth 1 https://github.com/emacs-evil/evil.git

emacs:
	$(emacs) -Q $(LIBS) \
	--eval "(evil-mode 1)" \
	--eval "(global-evil-surround-mode 1)"

compile: clean
	$(bemacs) -l test/make-compile.el

test:
	$(bemacs) -l test/make-test.el


clean:
	rm -f *.elc



.PHONY: update compile test clean