From b2c916196653646e8dd256a12d94f62e2876ab21 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 24 Sep 2013 13:05:20 +0100 Subject: [PATCH 2/2] 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. --- examples/client/Makefile.am | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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} -- 1.8.4.rc3