]> ruderich.org/simon Gitweb - tlsproxy/tlsproxy.git/blobdiff - man/Makefile.am
Add basic man pages.
[tlsproxy/tlsproxy.git] / man / Makefile.am
diff --git a/man/Makefile.am b/man/Makefile.am
new file mode 100644 (file)
index 0000000..548e898
--- /dev/null
@@ -0,0 +1,17 @@
+dist_man1_MANS = tlsproxy.1 tlsproxy-setup.1 tlsproxy-add.1
+dist_noinst_DATA = tlsproxy.txt tlsproxy-setup.txt tlsproxy-add.txt
+
+MAINTAINERCLEANFILES = $(dist_man1_MANS)
+
+
+ASCIIDOC = asciidoc
+XMLTO = xmlto
+RM = rm
+
+A2XML = $(ASCIIDOC) --backend=docbook --doctype=manpage --conf-file=man.conf
+XML2MAN = $(XMLTO) man
+
+.txt.1:
+       $(A2XML) -o $@.xml $<
+       $(XML2MAN) $@.xml
+       $(RM) $@.xml