summaryrefslogtreecommitdiffhomepage
path: root/doc/man8/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man8/Makefile.am')
-rw-r--r--doc/man8/Makefile.am23
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/man8/Makefile.am b/doc/man8/Makefile.am
new file mode 100644
index 0000000..3dc9dea
--- /dev/null
+++ b/doc/man8/Makefile.am
@@ -0,0 +1,23 @@
+MAN8_FILES = \
+ tinyproxy.txt
+
+A2X_ARGS = \
+ -d manpage \
+ -f manpage
+
+man_MANS = \
+ $(MAN8_FILES:.txt=.8)
+
+.txt.8:
+if HAVE_A2X
+ a2x $(A2X_ARGS) $<
+else
+ @echo "*** a2x (asciidoc) is required to regenerate $(@) ***"; exit 1;
+endif
+
+EXTRA_DIST = \
+ $(MAN8_FILES) \
+ $(man_MANS)
+
+clean-local:
+ rm -f $(MAN8_FILES:.txt=.8) $(MAN1_FILES:.txt=.xml)