-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
36 lines (28 loc) · 874 Bytes
/
Makefile
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
28
29
30
31
32
33
34
35
36
.PHONY : test
EMACS ?= emacs
CASK ?= cask
LOADPATH = -L .
LOAD_HELPER = -l test/test-helper.el
ELPA_DIR = $(shell EMACS=$(EMACS) $(CASK) package-directory)
test: elpa
$(CASK) exec $(EMACS) -Q -batch $(LOADPATH) $(LOAD_HELPER) \
-l test/test-indentation.el \
-l test/test-command.el \
-l test/test-highlighting.el \
-f ert-run-tests-batch-and-exit
test-indentation: elpa
$(CASK) exec $(EMACS) -Q -batch $(LOADPATH) $(LOAD_HELPER) \
-l test/test-indentation.el \
-f ert-run-tests-batch-and-exit
test-command: elpa
$(CASK) exec $(EMACS) -Q -batch $(LOADPATH) $(LOAD_HELPER) \
-l test/test-command.el \
-f ert-run-tests-batch-and-exit
test-highlighting: elpa
$(CASK) exec $(EMACS) -Q -batch $(LOADPATH) $(LOAD_HELPER) \
-l test/test-highlighting.el \
-f ert-run-tests-batch-and-exit
elpa: $(ELPA_DIR)
$(ELPA_DIR): Cask
$(CASK) install
touch $@