aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 4678ee1314c6a3d4f4139c0ff2abaaa6aceb0a26 (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
.POSIX:
.PHONY: all compile test clean
.SUFFIXES: .el .elc

EMACS = emacs
MAKEINFO = makeinfo
BYTEC = compat-help.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) -Q --batch -L . -l compat-tests.el -f ert-run-tests-batch-and-exit

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

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

# compat.texi: MANUAL
# 	$(EMACS) -Q --batch $< -f org-texinfo-export-to-texinfo --kill

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