aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 9771ba8e6e3f37a396994d3607bffd3bb67bde8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
EMACS ?= emacs
ELFILES := perspective.el
ELCFILES = $(ELFILES:.el=.elc)

all: test

.PHONY: test
test:
	$(EMACS) -nw -Q -batch -L . -l ert $(addprefix -l ,$(wildcard test/*.el)) \
		--eval "(ert-run-tests-batch-and-exit)"

.PHONY: compile
compile: $(ELCFILES)

$(ELCFILES): %.elc: %.el
	$(EMACS) --batch -Q -L . -f batch-byte-compile $<