summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2013-09-24 13:05:20 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2013-09-24 13:51:26 +0100
commitca33bfa878946a1ad904e0dcd88455e989223707 (patch)
tree24cd2f1e0d41c1ae04cf69066ae3ff9ae3f71353 /examples
parent8685a6d9368307046b3d21099ed2d33770a84ece (diff)
Copy contact-list.c into the ${builddir} so the XInclude in the docs works
This fixes the long-standing bug that if telepathy-glib was built out-of-tree, the documentation had "FIXME: MISSING XINCLUDE CONTENT" instead of the example. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69753 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Diffstat (limited to 'examples')
-rw-r--r--examples/client/Makefile.am16
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/client/Makefile.am b/examples/client/Makefile.am
index 99ea4d6c6..f128c413d 100644
--- a/examples/client/Makefile.am
+++ b/examples/client/Makefile.am
@@ -66,3 +66,19 @@ AM_CFLAGS = $(ERROR_CFLAGS)
AM_LDFLAGS = \
$(ERROR_LDFLAGS) \
$(NULL)
+
+# These files are copied into the ${builddir}, if different, because
+# the documentation includes them via XInclude, and gtk-doc looks
+# in the builddir for such files.
+copy_to_builddir = \
+ contact-list.c \
+ $(NULL)
+
+all-local:
+ ${AM_V_at}if test -n "${srcdir}" && test "x${srcdir}" != x.; then \
+ for x in ${copy_to_builddir}; do \
+ cp "${srcdir}/$$x" "$$x" || exit $$?; \
+ done; \
+ fi
+
+CLEANFILES = ${copy_to_builddir}