make: allow controlling asciidoc implementation via variables

ASCIIDOC and ASCIIDOC_MAN have been added, which default to the
(Python-based) reference implementation, but may be changed to
asciidoctor simply.

The manpages have been modified to use single-line section headings
for AsciiDoctor compatibility.
This commit is contained in:
Mike Swanson 2019-09-12 10:59:47 -07:00
parent 14280d32e2
commit db2d48a8ce
3 changed files with 11 additions and 13 deletions

3
dist/Makefile vendored
View file

@ -1,10 +1,11 @@
ASCIIDOC_MAN=a2x -f manpage
.SUFFIXES: .adoc .6
all: freedm.6 freedoom1.6 freedoom2.6 freedm.png freedoom1.png freedoom2.png
%.6: freedoom.adoc
sed -e s/freedoom/$*/ $< > $*.adoc
a2x -f manpage $*.adoc
$(ASCIIDOC_MAN) $*.adoc
freedm.png: ../graphics/titlepic/freedm_title2.png
./pillow-resize $< $@ 64 64