]> Pileus Git - ~andy/gtk/commitdiff
docs: Improve man page generation
authorMatthias Clasen <mclasen@redhat.com>
Thu, 2 Aug 2012 23:49:15 +0000 (01:49 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 4 Aug 2012 20:14:31 +0000 (16:14 -0400)
Use $(AM_V_GEN) for generating man pages, and set some parameters
for the XSL stylesheets. Among other things, don't generate AUTHORS
and COPYRIGHT sections.

docs/reference/gtk/Makefile.am

index 8ef4044bd44630337f3523002baad4dff95f5bef..780c0af69bcc83a273fd3d74225b8282f36fd104 100644 (file)
@@ -406,8 +406,16 @@ man_MANS =                                 \
 
 if ENABLE_MAN
 
+XSLTPROC_FLAGS = \
+        --nonet \
+        --stringparam man.output.quietly 1 \
+        --stringparam funcsynopsis.style ansi \
+        --stringparam man.th.extra1.suppress 1 \
+        --stringparam man.authors.section.enabled 0 \
+        --stringparam man.copyright.section.enabled 0
+
 .xml.1:
-       @XSLTPROC@ -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
+       $(AM_V_GEN) $(XSLTPROC) $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
 
 dist-local-check-mans-enabled:
        if grep "Man generation disabled" $(man_MANS) >/dev/null; then $(RM) $(man_MANS); fi