Fixed generation of man page.
authorAlexander Pozdnyakov <almipo@mail.ru>
Mon, 21 Jan 2019 16:40:07 +0000 (16:40 +0000)
committerAlexander Pozdnyakov <almipo@mail.ru>
Mon, 21 Jan 2019 16:40:07 +0000 (16:40 +0000)
Last-Update: 2018-10-05

Gbp-Pq: Name man.diff

doc/Makefile.am

index a218aca3b6a93643ea5d0f09a4e2eee54f4ae3cd..5b296c9695e2cb0ce00377e617a6e4d39a0bc191 100644 (file)
@@ -29,6 +29,8 @@ man_MANS += \
   unicharset.5
 endif
 
+man_xslt = /usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook.xsl
+
 EXTRA_DIST = $(man_MANS) Doxyfile
 
 .PHONY: html
@@ -36,7 +38,8 @@ EXTRA_DIST = $(man_MANS) Doxyfile
 html: $(patsubst %,%.html,$(man_MANS))
 
 %: %.asc
-       $(asciidoc) -o $@ $<
+       $(asciidoc) -d manpage -b docbook $<
+       xsltproc $(man_xslt) $@.xml
 
 %.html: %.asc
        asciidoc -b html5 -o $@ $<