summaryrefslogtreecommitdiff
path: root/Makefile
blob: a1366a8caf87c6cd0667d0b9080ba1a49e8bdc6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.POSIX:
.PHONY: all compile test clean
.SUFFIXES: .el .elc

EMACS = emacs
BYTEC = shell-command+.elc

all: compile

compile: $(BYTEC)

test: compile
	$(EMACS) --version
	$(EMACS) -Q --batch -L . -l shell-command+-tests.el -f ert-run-tests-batch-and-exit

clean:
	$(RM) $(BYTEC) compat.info

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