diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2010-04-07 15:14:56 +0100 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2010-04-07 15:15:05 +0100 |
commit | 970a4d6f9c2c2f59d78d9e6b8e347b31440d0088 (patch) | |
tree | 4073293a03da1216a8e2be54d01471baf45efdc8 /docs | |
parent | f2dc3d965438fb69fcb516a76926dbf2671d0fd3 (diff) |
Correctly scan generated code in out-of-tree builds
Diffstat (limited to 'docs')
-rw-r--r-- | docs/reference/Makefile.am | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/docs/reference/Makefile.am b/docs/reference/Makefile.am index cd3baaa..d8ca5f0 100644 --- a/docs/reference/Makefile.am +++ b/docs/reference/Makefile.am @@ -46,11 +46,20 @@ MKHTML_OPTIONS= # e.g. FIXXREF_OPTIONS=--extra-dir=../gdk-pixbuf/html --extra-dir=../gdk/html FIXXREF_OPTIONS= +# If we're building out of tree, we need to scan wocky/ under the builddir as +# well as under the sourcedir (which is specified above with DOC_SOURCE_DIR) to +# pick up the enumtypes. +# +# If we're building in-tree, well, we'd just better hope gtkdoc doesn't mind +# scanning stuff twice. +SCAN_OPTIONS += --source-dir=$(abs_top_builddir)/wocky +MKDB_OPTIONS += --source-dir=$(abs_top_builddir)/wocky + # Used for dependencies. The docs will be rebuilt if any of these change. # e.g. HFILE_GLOB=$(top_srcdir)/gtk/*.h # e.g. CFILE_GLOB=$(top_srcdir)/gtk/*.c -HFILE_GLOB=$(top_srcdir)/wocky/*.h -CFILE_GLOB=$(top_srcdir)/wocky/*.c +HFILE_GLOB=$(top_srcdir)/wocky/*.h $(top_builddir)/wocky/*.h +CFILE_GLOB=$(top_srcdir)/wocky/*.c $(top_builddir)/wocky/*.c # Header files to ignore when scanning. # e.g. IGNORE_HFILES=gtkdebug.h gtkintl.h |