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-Url: https://git.lttng.org./?a=commitdiff_plain;h=c133fac808b63d525d34fcbc7c6ff98aac650e1d;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