浏览代码

doc: generate manual pages with a2x

Stéphane Raimbault 10 年之前
父节点
当前提交
a83cd42e10
共有 1 个文件被更改,包括 4 次插入9 次删除
  1. 4 9
      doc/Makefile.am

+ 4 - 9
doc/Makefile.am

@@ -67,14 +67,9 @@ HTML = $(TXT3:%.txt=%.html) $(TXT7:%.txt=%.html)
 htmldoc: $(HTML)
 htmldoc: $(HTML)
 
 
 .txt.html:
 .txt.html:
-	asciidoc -d manpage -b xhtml11 -f asciidoc.conf \
-		-alibmodbus_version=@LIBMODBUS_VERSION@ $<
-.txt.xml:
-	asciidoc -d manpage -b docbook -f asciidoc.conf \
-		-alibmodbus_version=@LIBMODBUS_VERSION@ $<
-.xml.3:
-	xmlto --skip-validation man $<
-.xml.7:
-	xmlto --skip-validation man $<
+	asciidoc -d manpage -b xhtml11 -f asciidoc.conf -alibmodbus_version=@LIBMODBUS_VERSION@ $<
+
+.txt.3 .txt.7:
+	a2x --doctype manpage --format manpage -alibmodbus_version=@LIBMODBUS_VERSION@ $<
 
 
 CLEANFILES = *.3 *.7 *.html
 CLEANFILES = *.3 *.7 *.html