Commit a83cd42e101682510313f64ec7ff40a44f2c0a96

Authored by Stéphane Raimbault
1 parent 280bdbce

doc: generate manual pages with a2x

Showing 1 changed file with 4 additions and 9 deletions
doc/Makefile.am
@@ -67,14 +67,9 @@ HTML = $(TXT3:%.txt=%.html) $(TXT7:%.txt=%.html) @@ -67,14 +67,9 @@ HTML = $(TXT3:%.txt=%.html) $(TXT7:%.txt=%.html)
67 htmldoc: $(HTML) 67 htmldoc: $(HTML)
68 68
69 .txt.html: 69 .txt.html:
70 - asciidoc -d manpage -b xhtml11 -f asciidoc.conf \  
71 - -alibmodbus_version=@LIBMODBUS_VERSION@ $<  
72 -.txt.xml:  
73 - asciidoc -d manpage -b docbook -f asciidoc.conf \  
74 - -alibmodbus_version=@LIBMODBUS_VERSION@ $<  
75 -.xml.3:  
76 - xmlto --skip-validation man $<  
77 -.xml.7:  
78 - xmlto --skip-validation man $< 70 + asciidoc -d manpage -b xhtml11 -f asciidoc.conf -alibmodbus_version=@LIBMODBUS_VERSION@ $<
  71 +
  72 +.txt.3 .txt.7:
  73 + a2x --doctype manpage --format manpage -alibmodbus_version=@LIBMODBUS_VERSION@ $<
79 74
80 CLEANFILES = *.3 *.7 *.html 75 CLEANFILES = *.3 *.7 *.html