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.
This commit is contained in:
1 parent
0b9a74c290
commit
c2d4114427
3 files changed
+19
-3
No files matched your search
@@ -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 = \
|
||||
|
||||
Reference in new issue
Block a user