-
Notifications
You must be signed in to change notification settings - Fork 34
/
Makefile
41 lines (32 loc) · 988 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
37
38
39
40
41
.PHONY : test
UNAME_S=$(shell uname -s)
ifeq ($(UNAME_S),Darwin)
EMACS ?= /Applications/Emacs.app/Contents/MacOS/Emacs
else
EMACS ?= emacs
endif
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-highlighting.el -l test/test-indentation.el \
-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-exi
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
elpa: $(ELPA_DIR)
$(ELPA_DIR): Cask
$(CASK) install
touch $@