summaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorrofl0r <rofl0r@users.noreply.github.com>2020-08-11 14:52:16 +0100
committerrofl0r <rofl0r@users.noreply.github.com>2020-08-11 15:25:02 +0100
commitc2d4114427421864f9152856c6e2b4b9ff6d83dd (patch)
treec2011fa6d3c36c57e15e007bc51d4a32021e95bb /docs
parent0b9a74c29036f9215b2b97a301b7b25933054302 (diff)
add support for asciidoctor to generate manpages
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.
Diffstat (limited to 'docs')
-rw-r--r--docs/man5/Makefile.am8
-rw-r--r--docs/man8/Makefile.am8
2 files changed, 14 insertions, 2 deletions
diff --git a/docs/man5/Makefile.am b/docs/man5/Makefile.am
index 247b7ef..48e5b03 100644
--- a/docs/man5/Makefile.am
+++ b/docs/man5/Makefile.am
@@ -7,6 +7,8 @@ else
A2X_ARGS = -d manpage -f manpage -L
endif
+ASCIIDOCTOR_ARGS = -b manpage
+
man_MANS = \
$(MAN5_FILES:.txt=.5)
@@ -14,7 +16,11 @@ man_MANS = \
if HAVE_A2X
$(AM_V_GEN) $(A2X) $(A2X_ARGS) $<
else
- @echo "*** a2x (asciidoc) is required to regenerate $(@) ***"; exit 1;
+if HAVE_ASCIIDOCTOR
+ $(AM_V_GEN) $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) $<
+else
+ @echo "*** a2x (asciidoc) or asciidoctor is required to regenerate $(@) ***"; exit 1;
+endif
endif
CLEANFILES = \
diff --git a/docs/man8/Makefile.am b/docs/man8/Makefile.am
index 1bd0ffa..5e2f390 100644
--- a/docs/man8/Makefile.am
+++ b/docs/man8/Makefile.am
@@ -7,6 +7,8 @@ else
A2X_ARGS = -d manpage -f manpage -L
endif
+ASCIIDOCTOR_ARGS = -b manpage
+
man_MANS = \
$(MAN8_FILES:.txt=.8)
@@ -14,7 +16,11 @@ man_MANS = \
if HAVE_A2X
$(AM_V_GEN) $(A2X) $(A2X_ARGS) $<
else
- @echo "*** a2x (asciidoc) is required to regenerate $(@) ***"; exit 1;
+if HAVE_ASCIIDOCTOR
+ $(AM_V_GEN) $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) $<
+else
+ @echo "*** a2x (asciidoc) or asciidoctor is required to regenerate $(@) ***"; exit 1;
+endif
endif
CLEANFILES = \