summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw@src.gnome.org>2016-06-14 10:31:27 +0800
committerTing-Wei Lan <lantw@src.gnome.org>2016-07-08 17:05:23 +0800
commit259a87c560407b91595ee1ca4fe8d16d67f618c1 (patch)
treed0a36ed2b63a2162fa8cc10f68b7be770bb56dde
parent2f9b0890fad22cc686b3f1293c961493d01e923b (diff)
downloadcolord-259a87c560407b91595ee1ca4fe8d16d67f618c1.tar.gz
build: Fix gtk-doc build when srcdir != builddir
https://bugs.freedesktop.org/show_bug.cgi?id=96520
-rw-r--r--doc/api/Makefile.am6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/api/Makefile.am b/doc/api/Makefile.am
index 3b2a103..cd62037 100644
--- a/doc/api/Makefile.am
+++ b/doc/api/Makefile.am
@@ -13,7 +13,7 @@ DOC_MAIN_SGML_FILE=colord-docs.xml
SCAN_OPTIONS=--ignore-headers=config.h
# The directory containing the source code. Relative to $(srcdir)
-DOC_SOURCE_DIR=../../lib/colord
+DOC_SOURCE_DIR=$(top_srcdir)/lib/colord $(top_builddir)/lib/colord
# Used for dependencies
HFILE_GLOB=
@@ -23,6 +23,9 @@ CFILE_GLOB=
IGNORE_HFILES= \
config.h
+# Extra options to supply to gtkdoc-mkhtml
+MKHTML_OPTIONS=--path="$(top_srcdir)"
+
# CFLAGS and LDFLAGS for compiling scan program. Only needed
# if $(DOC_MODULE).types is non-empty.
AM_CPPFLAGS = \
@@ -46,6 +49,7 @@ MKTMPL_OPTIONS=
# Non-autogenerated SGML files to be included in $(DOC_MAIN_SGML_FILE)
content_files = \
+ ../../COPYING \
version.xml \
dbus/org.freedesktop.ColorManager.ref.xml