c2d4114427
asciidoctor is a modern replacement for asciidoc and much more lightweight, issuing "apt-get install asciidoc" on ubuntu 16.04 results in an attempt to install more than 1.3 GB of dependencies.
32 lines
542 B
Makefile
32 lines
542 B
Makefile
MAN5_FILES = \
|
|
tinyproxy.conf.txt
|
|
|
|
if HAVE_XMLLINT
|
|
A2X_ARGS = -d manpage -f manpage
|
|
else
|
|
A2X_ARGS = -d manpage -f manpage -L
|
|
endif
|
|
|
|
ASCIIDOCTOR_ARGS = -b manpage
|
|
|
|
man_MANS = \
|
|
$(MAN5_FILES:.txt=.5)
|
|
|
|
.txt.5:
|
|
if HAVE_A2X
|
|
$(AM_V_GEN) $(A2X) $(A2X_ARGS) $<
|
|
else
|
|
if HAVE_ASCIIDOCTOR
|
|
$(AM_V_GEN) $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) $<
|
|
else
|
|
@echo "*** a2x (asciidoc) or asciidoctor is required to regenerate $(@) ***"; exit 1;
|
|
endif
|
|
endif
|
|
|
|
CLEANFILES = \
|
|
$(MAN5_FILES:.txt=.5) \
|
|
$(MAN5_FILES:.txt=.xml)
|
|
|
|
EXTRA_DIST = \
|
|
$(MAN5_FILES:.txt=.5)
|