docs: Improve man page generation
authorMatthias Clasen <mclasen@redhat.com>
Thu, 2 Aug 2012 22:33:34 +0000 (00:33 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 4 Aug 2012 03:36:45 +0000 (23:36 -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/gio/Makefile.am
docs/reference/glib/Makefile.am
docs/reference/gobject/Makefile.am

index 7d2d264..6b4ab9e 100644 (file)
@@ -153,8 +153,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
index d2a54f1..7108aeb 100644 (file)
@@ -101,8 +101,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
index 03eaa16..96181f6 100644 (file)
@@ -76,8 +76,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