Sync makefiles with upstream.
authorStefan Kost <ensonic@users.sf.net>
Wed, 21 Jan 2009 16:24:32 +0000 (18:24 +0200)
committerStefan Kost <ensonic@users.sf.net>
Thu, 22 Jan 2009 14:33:15 +0000 (16:33 +0200)
Add parameters that are needed to build with gtk-doc svn trunk and don't hurt when used with older versions.
Sync other parts of makefiles (namely expand_content files).

gtk-doc-plugins.mak
gtk-doc.mak

index 59fcb73..574f5e5 100644 (file)
@@ -201,7 +201,7 @@ tmpl.stamp: tmpl-build.stamp
 #### build xml; done on every build ####
 
 ### FIXME: make this error out again when docs are fixed for 0.9
-sgml-build.stamp: tmpl.stamp inspect.stamp $(CFILE_GLOB) $(top_srcdir)/common/plugins.xsl
+sgml-build.stamp: tmpl.stamp inspect.stamp $(CFILE_GLOB) $(top_srcdir)/common/plugins.xsl $(expand_content_files)
        @echo '*** Building XML ***'
        @-mkdir -p xml
        @for a in $(srcdir)/inspect/*.xml; do \
@@ -212,6 +212,7 @@ sgml-build.stamp: tmpl.stamp inspect.stamp $(CFILE_GLOB) $(top_srcdir)/common/pl
        gtkdoc-mkdb \
                --module=$(DOC_MODULE) \
                --source-dir=$(DOC_SOURCE_DIR) \
+                 --expand-content-files="$(expand_content_files)" \
                --main-sgml-file=$(srcdir)/$(DOC_MAIN_SGML_FILE) \
                --output-format=xml \
                --ignore-files="$(IGNORE_HFILES) $(IGNORE_CFILES)" \
@@ -249,7 +250,7 @@ html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
        test "x$(HTML_IMAGES)" = "x" || for i in "" $(HTML_IMAGES) ; do \
            if test "$$i" != ""; then cp $(srcdir)/$$i html ; fi; done
        @echo '-- Fixing Crossreferences' 
-       gtkdoc-fixxref --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
+       gtkdoc-fixxref --module=$(DOC_MODULE) --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
        touch html-build.stamp
 
 clean-local-gtkdoc:
index 7cb2279..87182ff 100644 (file)
@@ -111,9 +111,9 @@ tmpl.stamp: tmpl-build.stamp
 #### xml ####
 
 ### FIXME: make this error out again when docs are complete
-sgml-build.stamp: tmpl.stamp $(CFILE_GLOB)
+sgml-build.stamp: tmpl.stamp $(CFILE_GLOB) $(expand_content_files)
        @echo '*** Building XML ***'
-       gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --main-sgml-file=$(srcdir)/$(DOC_MAIN_SGML_FILE) --output-format=xml $(MKDB_OPTIONS) | tee sgml-build.log
+       gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR)  --expand-content-files="$(expand_content_files)" --main-sgml-file=$(srcdir)/$(DOC_MAIN_SGML_FILE) --output-format=xml $(MKDB_OPTIONS) | tee sgml-build.log
        @if grep "WARNING:" sgml-build.log > /dev/null; then true; fi # exit 1; fi
        cp ../version.entities xml
        rm sgml-build.log
@@ -142,7 +142,7 @@ html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
        test "x$(HTML_IMAGES)" = "x" || for i in "" $(HTML_IMAGES) ; do \
            if test "$$i" != ""; then cp $(srcdir)/$$i html ; fi; done
        @echo '-- Fixing Crossreferences' 
-       gtkdoc-fixxref --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
+       gtkdoc-fixxref --module=$(DOC_MODULE) --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
        touch html-build.stamp
 
 clean-local-gtkdoc: