telepathy-glib: Copy contact-list. c into the ${builddir} so the XInclude in the docs works
Simon McVittie
smcv at kemper.freedesktop.org
Tue Sep 24 05:53:06 PDT 2013
Module: telepathy-glib
Branch: master
Commit: ca33bfa878946a1ad904e0dcd88455e989223707
URL: http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=ca33bfa878946a1ad904e0dcd88455e989223707
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Tue Sep 24 13:05:20 2013 +0100
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 at collabora.co.uk>
---
examples/client/Makefile.am | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/examples/client/Makefile.am b/examples/client/Makefile.am
index 99ea4d6..f128c41 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}
More information about the telepathy-commits
mailing list