aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 3ed7ee57d152401e9e7956b58e5b0e489a9948cf (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
.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) -Q --batch -L . -l compat-tests.el -f ert-run-tests-batch-and-exit

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

compat.elc: compat.el compat-macs.el compat-24.el compat-25.el compat-26.el compat-27.el compat-28.el

.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) $<