aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPhilip Kaludercic <philipk@posteo.net>2022-03-04 11:19:35 +0100
committerPhilip Kaludercic <philipk@posteo.net>2022-03-04 11:20:02 +0100
commite4db344ed55e0706c4680892ca300ea3b32276a6 (patch)
tree60fcbb4015284e18ddd4cbc3bef95c5ed3be1d17 /Makefile
parent88d26596cbf0c94bd6de440531c912f84afc4563 (diff)
Add MANUAL
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 1e63cb5..9723d2c 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,7 @@
.SUFFIXES: .el .elc
EMACS = emacs
+MAKEINFO = makeinfo
BYTEC = compat-help.elc \
compat-macs.elc \
compat-24.elc \
@@ -12,16 +13,22 @@ BYTEC = compat-help.elc \
compat-28.elc \
compat.elc
-all: compile test
+all: compile compat.info
compile: $(BYTEC)
-test:
+test: compile
$(EMACS) -Q --batch -L . -l compat-tests.el -f ert-run-tests-batch-and-exit
clean:
- $(RM) $(BYTEC)
+ $(RM) $(BYTEC) compat.texi 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
+ mv $<.texi $@
+
+compat.info: compat.texi
+ $(MAKEINFO) $<