diff --git a/ChangeLog b/ChangeLog index d4d867d7c..87cae39fd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +2005-08-21 Owen Taylor + + * autogen.sh: When invoked as, say, ../autogen.sh, switch to + the sourcedir to run the auto*. Based on corresponding code + in GTK+'s autogen.sh. (#3402, Thomas Fitzsimmons) + + * gtk-doc.make: Update from gtk-doc CVS, bringing in some + minor output changes. (Eliminate the *** from the messages + that don't indicate errors.) + + * doc/public/Makefile.am (EXTRA_DIST): Use += for EXTRA_DIST, + since gtk-doc.make already defines it. + 2005-08-21 Owen Taylor * configure.in: Check for FT_Load_Sfnt_Table and disable diff --git a/autogen.sh b/autogen.sh index 8dd21ea68..55886dec1 100755 --- a/autogen.sh +++ b/autogen.sh @@ -25,6 +25,15 @@ LC_NUMERIC=C ARGV0=$0 +# Allow invocation from a separate build directory; in that case, we change +# to the source directory to run the auto*, then change back before running configure +srcdir=`dirname $ARGV0` +test -z "$srcdir" && srcdir=. + +ORIGDIR=`pwd` + +cd $srcdir + if ($AUTOCONF --version) < /dev/null > /dev/null 2>&1 ; then if ($AUTOCONF --version | head -n 1 | awk 'NR==1 { if( $(NF) >= '$autoconf_min_vers') \ exit 1; exit 0; }'); @@ -133,4 +142,6 @@ do_cmd $AUTOMAKE $AUTOMAKE_FLAGS do_cmd $AUTOCONF -do_cmd ./configure --enable-maintainer-mode --enable-gtk-doc ${1+"$@"} && echo "Now type \`make' to compile" || exit 1 +cd $ORIGDIR || exit 1 + +do_cmd $srcdir/configure --enable-maintainer-mode --enable-gtk-doc ${1+"$@"} && echo "Now type \`make' to compile" || exit 1 diff --git a/doc/public/Makefile.am b/doc/public/Makefile.am index 1005f6ee1..f05cd87e1 100644 --- a/doc/public/Makefile.am +++ b/doc/public/Makefile.am @@ -56,7 +56,8 @@ HTML_IMAGES = # Extra options to supply to gtkdoc-fixref FIXXREF_OPTIONS= -# Version information for marking the documentation -EXTRA_DIST=version.xml.in - include $(top_srcdir)/gtk-doc.make + +# Version information for marking the documentation +EXTRA_DIST += version.xml.in + diff --git a/gtk-doc.make b/gtk-doc.make index 91cdd34d2..d50629a1b 100644 --- a/gtk-doc.make +++ b/gtk-doc.make @@ -46,7 +46,7 @@ all-local: html-build.stamp #### scan #### scan-build.stamp: $(HFILE_GLOB) $(CFILE_GLOB) - @echo '*** Scanning header files ***' + @echo 'gtk-doc: Scanning header files' @-chmod -R u+w $(srcdir) if grep -l '^..*$$' $(srcdir)/$(DOC_MODULE).types > /dev/null 2>&1 ; then \ CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" CFLAGS="$(GTKDOC_CFLAGS)" LDFLAGS="$(GTKDOC_LIBS)" gtkdoc-scangobj $(SCANGOBJ_OPTIONS) --module=$(DOC_MODULE) --output-dir=$(srcdir) ; \ @@ -66,7 +66,7 @@ $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES): scan-build.stamp #### templates #### tmpl-build.stamp: $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt - @echo '*** Rebuilding template files ***' + @echo 'gtk-doc: Rebuilding template files' @-chmod -R u+w $(srcdir) cd $(srcdir) && gtkdoc-mktmpl --module=$(DOC_MODULE) $(MKTMPL_OPTIONS) touch tmpl-build.stamp @@ -77,10 +77,10 @@ tmpl.stamp: tmpl-build.stamp #### xml #### sgml-build.stamp: tmpl.stamp $(CFILE_GLOB) $(srcdir)/tmpl/*.sgml $(expand_content_files) - @echo '*** Building XML ***' + @echo 'gtk-doc: Building XML' @-chmod -R u+w $(srcdir) cd $(srcdir) && \ - gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --output-format=xml --expand-content-files="$(expand_content_files)" $(MKDB_OPTIONS) + gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --output-format=xml --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) $(MKDB_OPTIONS) touch sgml-build.stamp sgml.stamp: sgml-build.stamp @@ -89,13 +89,13 @@ sgml.stamp: sgml-build.stamp #### html #### html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) - @echo '*** Building HTML ***' + @echo 'gtk-doc: Building HTML' @-chmod -R u+w $(srcdir) rm -rf $(srcdir)/html mkdir $(srcdir)/html cd $(srcdir)/html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE) test "x$(HTML_IMAGES)" = "x" || ( cd $(srcdir) && cp $(HTML_IMAGES) html ) - @echo '-- Fixing Crossreferences' + @echo 'gtk-doc: Fixing cross-references' cd $(srcdir) && gtkdoc-fixxref --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS) touch html-build.stamp else