summaryrefslogtreecommitdiff
path: root/examples/client
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2013-09-24 14:42:15 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2013-09-24 14:42:15 +0100
commitff26814b44720336cdcb298ddf45aea2edcfae0a (patch)
tree61eb418e335c45a3d178fc49236ba9a1e098263c /examples/client
parentfe4885a66bb1edba8521329674af6765fa785e77 (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
Diffstat (limited to 'examples/client')
-rw-r--r--examples/client/Makefile.am21
1 files changed, 21 insertions, 0 deletions
diff --git a/examples/client/Makefile.am b/examples/client/Makefile.am
index 99ea4d6c6..32fa27d42 100644
--- a/examples/client/Makefile.am
+++ b/examples/client/Makefile.am
@@ -66,3 +66,24 @@ 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)
+
+# the chmod here is to avoid the copy in the builddir picking up the
+# read-only status of the original in the srcdir, during distcheck
+all-local:
+ ${AM_V_at}set -e && \
+ if test -n "${srcdir}" && test "x${srcdir}" != x.; then \
+ for x in ${copy_to_builddir}; do \
+ rm -f "$$x"; \
+ cp "${srcdir}/$$x" "$$x"; \
+ chmod 0644 "$$x"; \
+ done; \
+ fi
+
+CLEANFILES = ${copy_to_builddir}