cleanup: don't copy lttng-gen-tp in OOT builds
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 23 Mar 2021 14:20:09 +0000 (10:20 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 23 Mar 2021 15:16:50 +0000 (11:16 -0400)
No need to make a copy of lttng-gen-tp when doing an out of tree build,
just use the path to the source dir in the examples Makefile.

Change-Id: I485d0f9b25232d0ce46c2f7981a3ef781155c749
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
doc/examples/Makefile.am
tools/Makefile.am

index 1dbe9f9dd26f8832ab940d7ffe9eea9bcf391124..d713d1eadb8108ed57e653c486c7cc537afeb7c3 100644 (file)
@@ -140,7 +140,7 @@ all-local:
                                AM_CFLAGS='$(AM_CFLAGS)' \
                                LDFLAGS="$(LDFLAGS)" \
                                AM_LDFLAGS='$(AM_LDFLAGS) -L../../../liblttng-ust/.libs -Wl,-rpath="$(PWD)/../../liblttng-ust/.libs/" -Wl,-rpath-link="$(PWD)/../../liblttng-ust/.libs/"' \
-                               LTTNG_GEN_TP_PATH="../../../tools/" \
+                               LTTNG_GEN_TP_PATH="$$rel_src_subdir$(top_srcdir)/tools/" \
                                AM_V_P="$(AM_V_P)" \
                                AM_V_at="$(AM_V_at)" \
                                $(AM_MAKEFLAGS) \
index 65e9dcf2459e2ff84a5907e094ba62fa2a350e8b..06bca117754103fdd2bafde1fdd64e0a75e6e852 100644 (file)
@@ -1,17 +1,3 @@
 # SPDX-License-Identifier: LGPL-2.1-only
 
 dist_bin_SCRIPTS = lttng-gen-tp
-
-all-local:
-       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
-               for script in $(dist_bin_SCRIPTS); do \
-                       cp -f $(srcdir)/$$script $(builddir); \
-               done; \
-       fi
-
-clean-local:
-       @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
-               for script in $(dist_bin_SCRIPTS); do \
-                       rm -f $(builddir)/$$script; \
-               done; \
-       fi
This page took 0.028526 seconds and 4 git commands to generate.