build: fix gtk-doc when srcdir != builddir
authorPatrick Welche <prlw1@cam.ac.uk>
Thu, 23 Jun 2011 14:08:46 +0000 (15:08 +0100)
committerColin Walters <walters@verbum.org>
Thu, 23 Jun 2011 16:52:13 +0000 (12:52 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=653250

docs/reference/gio/Makefile.am
docs/reference/glib/Makefile.am
docs/reference/gobject/Makefile.am

index b6a1d19..c17b3f9 100644 (file)
@@ -15,7 +15,7 @@ SCAN_OPTIONS=--deprecated-guards="G_DISABLE_DEPRECATED"
 # The directory containing the source code. Relative to $(srcdir)
 DOC_SOURCE_DIR=$(top_srcdir)/gio
 
-HFILE_GLOB=$(addprefix $(top_srcdir)/gio/,$(shell cat $(top_srcdir)/gio/gio-public-headers.txt))
+HFILE_GLOB=$(addprefix $(top_srcdir)/gio/,$(shell cat $(top_builddir)/gio/gio-public-headers.txt))
 CFILE_GLOB=$(top_srcdir)/gio/*.c
 
 # CFLAGS and LDFLAGS for compiling scan program. Only needed
index 4c9f22c..58742d6 100644 (file)
@@ -19,7 +19,7 @@ SCAN_OPTIONS=--deprecated-guards="G_DISABLE_DEPRECATED" --ignore-decorators="GLI
 MKDB_OPTIONS=--sgml-mode --output-format=xml --name-space=g
 
 # Used for dependencies
-HFILE_GLOB=$(addprefix $(top_srcdir)/glib/,$(shell cat $(top_srcdir)/glib/glib-public-headers.txt)) $(top_srcdir)/gmodule/*.h
+HFILE_GLOB=$(addprefix $(top_srcdir)/glib/,$(shell cat $(top_builddir)/glib/glib-public-headers.txt)) $(top_srcdir)/gmodule/*.h
 CFILE_GLOB=$(top_srcdir)/glib/*.c $(top_srcdir)/gmodule/*.c
 
 # Images to copy into HTML directory
index 84572dd..9dfa959 100644 (file)
@@ -20,7 +20,7 @@ SCAN_OPTIONS=--deprecated-guards="G_DISABLE_DEPRECATED" \
 MKDB_OPTIONS=--sgml-mode --output-format=xml --name-space=g
 
 # Used for dependencies
-HFILE_GLOB=$(addprefix $(top_srcdir)/gobject/,$(shell cat $(top_srcdir)/gobject/gobject-public-headers.txt))
+HFILE_GLOB=$(addprefix $(top_srcdir)/gobject/,$(shell cat $(top_builddir)/gobject/gobject-public-headers.txt))
 CFILE_GLOB=$(top_srcdir)/gobject/*.c
 
 # CFLAGS and LDFLAGS for compiling scan program. Only needed