aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: a60edf68299d8b574070be7f2f9f24df4e99de72 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.PHONY : test

emacs ?= emacs
CASK ?= cask

LOADPATH = -L .

ELPA_DIR = \
	.cask/$(shell $(emacs) -Q --batch --eval '(princ emacs-version)')/elpa

test: elpa
	$(CASK) exec $(emacs) -Q -batch $(LOADPATH) \
		-l which-key-tests.el -f ert-run-tests-batch-and-exit

elpa: $(ELPA_DIR)
$(ELPA_DIR): Cask
	$(CASK) install
	mkdir -p $(ELPA_DIR)
	touch $@