aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 776c12502737ea634cf3312e5bfaf6a9cc196e53 (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
28
29
30
31
32
33
34
35
36
37
38
39
.POSIX:
.PHONY: all compile test clean
.SUFFIXES: .el .elc

EMACS = emacs
MAKEINFO = makeinfo
BYTEC = compat-help.elc \
	compat-font-lock.elc \
	compat-macs.elc \
	compat-24.elc \
	compat-25.elc \
	compat-26.elc \
	compat-27.elc \
	compat-28.elc \
	compat.elc

all: compile

compile: $(BYTEC)

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

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

compat-24.el:	compat-macs.el
compat-25.el:	compat-macs.el
compat-26.el:	compat-macs.el
compat-27.el:	compat-macs.el
compat-28.el:	compat-macs.el
compat-font-lock.el: compat-macs.el

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

compat.info: compat.texi
	$(MAKEINFO) $<