From 410c4adc77a84187f8512dc1c5e16acd009cc724 Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Thu, 2 Mar 2017 10:56:57 -0800 Subject: build: Fix builddir != srcdir with gtk-doc Gtk-doc would previously mark the symbols in the generated eosversion.h (EOS_MAJOR_VERSION, etc.) as undeclared and undocumented. This makes gtk-doc scan the generated eosversion.h file as well for comments. https://phabricator.endlessm.com/T15896 --- docs/reference/endless/Makefile.am | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'docs/reference/endless/Makefile.am') diff --git a/docs/reference/endless/Makefile.am b/docs/reference/endless/Makefile.am index c9140e0..4134c5e 100644 --- a/docs/reference/endless/Makefile.am +++ b/docs/reference/endless/Makefile.am @@ -13,7 +13,10 @@ DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.xml # gtk-doc will search all .c and .h files beneath these paths # for inline comments documenting functions and macros. # e.g. DOC_SOURCE_DIR=$(top_srcdir)/gtk $(top_srcdir)/gdk -DOC_SOURCE_DIR=$(top_srcdir)/endless +DOC_SOURCE_DIR = \ + $(top_srcdir)/endless \ + $(top_builddir)/endless \ + $(NULL) # Extra options to pass to gtkdoc-scangobj. Not normally needed. SCANGOBJ_OPTIONS= \ @@ -39,7 +42,7 @@ MKHTML_OPTIONS= FIXXREF_OPTIONS= # Used for dependencies. The docs will be rebuilt if any of these change. -BUILT_HFILES= +BUILT_HFILES = $(top_builddir)/endless/eosversion.h HFILE_GLOB=$(top_srcdir)/endless/*.h CFILE_GLOB=$(top_srcdir)/endless/*.c @@ -51,6 +54,7 @@ EXTRA_HFILES= # e.g. IGNORE_HFILES=gtkdebug.h gtkintl.h private_code IGNORE_HFILES= eosapiversion.h \ eosinit-private.h \ + eosresource-private.h \ eostopbar-private.h \ eosmainarea-private.h \ eosactionmenu-private.h \ -- cgit v1.2.3