summaryrefslogtreecommitdiff
path: root/Makefile
blob: d26c0efa9aa5592c6bdc2ec1f7f623e3cf1f80f0 (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
CASK ?= cask
EMACS23=emacs23

ELPA_DIR = $(shell EMACS=$(EMACS) $(CASK) package-directory)

.PHONY: test test-nw test-emacs23 test-emacs23-nw travis-ci

test:
	$(CASK) exec $(EMACS) -Q -L . -l tests/run-test.el

test-nw:
	$(CASK) exec $(EMACS) -Q -nw -L . -l tests/run-test.el

test-emacs23: tests/ert.el
	${EMACS23} -Q -L . -l test/ert.el -l tests/run-test.el

test-emacs23-nw: tests/ert.el
	$(EMACS23) -Q -nw -L . -l test/ert.el -l tests/run-test.el

travis-ci: elpa
	$(CASK) exec $(EMACS) -batch -Q -l tests/run-test.el

elpa: $(ELPA_DIR)
$(ELPA_DIR): Cask
	$(CASK) install
	touch $@