Build gtk-doc PDF by default and publish it.
authorSimon Josefsson <simon@josefsson.org>
Thu, 20 May 2010 12:53:10 +0000 (14:53 +0200)
committerSimon Josefsson <simon@josefsson.org>
Thu, 20 May 2010 12:58:22 +0000 (14:58 +0200)
cfg.mk
doc/gendocs_template
gl/override/doc/gendocs_template.diff

diff --git a/cfg.mk b/cfg.mk
index 4f9acb4..d52b68c 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -19,7 +19,7 @@
 
 WFLAGS ?= --enable-gcc-warnings
 ADDFLAGS ?=
-CFGFLAGS ?= --enable-gtk-doc $(ADDFLAGS) $(WFLAGS)
+CFGFLAGS ?= --enable-gtk-doc --enable-gtk-doc-pdf $(ADDFLAGS) $(WFLAGS)
 
 INDENT_SOURCES = `find . -name \*.[ch]|grep -v -e ^./gl -e ^./lib/gl -e ^./build-aux/ -e ^./lib/ASN1.c -e ^./tests/Test_tree_asn1_tab.c`
 
@@ -81,7 +81,7 @@ upload:
 web:
        cd doc && ../build-aux/gendocs.sh --html "--css-include=texinfo.css" \
                -o ../$(htmldir)/manual/ $(PACKAGE) "$(PACKAGE_NAME)"
-       cp -v doc/reference/html/*.html doc/reference/html/*.png doc/reference/html/*.devhelp doc/reference/html/*.css $(htmldir)/reference/
+       cp -v doc/reference/$(PACKAGE).pdf doc/reference/html/*.html doc/reference/html/*.png doc/reference/html/*.devhelp doc/reference/html/*.css $(htmldir)/reference/
        cp -v doc/cyclo/cyclo-$(PACKAGE).html $(htmldir)/cyclo/index.html
 
 upload-web:
index a2c658b..9b86dcb 100644 (file)
 some manuals</a> (among other items) from the Free Software Foundation;
 this helps support FSF activities.</p>
 
-<p>The manual is also available in a few experimental formats:
+<p>There is also an API reference manual:
 
 <p>
 <ul>
   <li><a href="../reference/">HTML Reference API Manual (GTK-DOC)</a>.
+  <li><a href="../reference/%%PACKAGE%%.pdf">PDF Reference API Manual (GTK-DOC)</a>.
   <li><a href="../reference/%%PACKAGE%%.devhelp">DevHelp Reference API Manual (GTK-DOC)</a>.
 </ul>
 
index ceb0445..ccd4e5b 100644 (file)
@@ -2,15 +2,16 @@ diff --git a/doc/gendocs_template b/doc/gendocs_template
 index 874689c..477d454 100755
 --- a/doc/gendocs_template
 +++ b/doc/gendocs_template
-@@ -41,6 +41,14 @@
+@@ -41,6 +41,15 @@
      (%%TEXI_TGZ_SIZE%%K bytes gzipped tar file)</a></li>
  </ul>
  
-+<p>The manual is also available in a few experimental formats:
++<p>There is also an API reference manual:
 +
 +<p>
 +<ul>
 +  <li><a href="../reference/">HTML Reference API Manual (GTK-DOC)</a>.
++  <li><a href="../reference/%%PACKAGE%%.pdf">PDF Reference API Manual (GTK-DOC)</a>.
 +  <li><a href="../reference/%%PACKAGE%%.devhelp">DevHelp Reference API Manual (GTK-DOC)</a>.
 +</ul>
 +