From: Jonathan Rajotte Date: Fri, 30 Jan 2015 18:30:10 +0000 (-0500) Subject: Fix: out-of-tree build: missing xsd file for save-load test execution X-Git-Tag: v2.5.5~33 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=31778410258f89563c3fb982f489556ee414df84;p=lttng-tools.git Fix: out-of-tree build: missing xsd file for save-load test execution This need to be backported to stable 2.6 and stable 2.5 Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/config/Makefile.am b/src/common/config/Makefile.am index 5acc89d54..e36b42fb0 100644 --- a/src/common/config/Makefile.am +++ b/src/common/config/Makefile.am @@ -9,3 +9,17 @@ libconfig_la_LIBADD = $(XML_LIBS) xmldir = $(datadir)/xml/lttng dist_xml_DATA = session.xsd EXTRA_DIST = session.xsd + +all-local: + @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ + for script in $(EXTRA_DIST); do \ + cp -f $(srcdir)/$$script $(builddir); \ + done; \ + fi + +clean-local: + @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ + for script in $(EXTRA_DIST); do \ + rm -f $(builddir)/$$script; \ + done; \ + fi