X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Fhealth%2FMakefile.am;h=643dd31d2081b3deaba926d78575d26e3ee5770c;hb=3b0246b4f7c4da472630b2d7de7522b3715b5764;hp=098fbf421aee5ee9c119b0fc14ecf66cc7ecd6d0;hpb=431387b05242f3cd52771cd4cdb3f09e9ef9a560;p=lttng-tools.git diff --git a/tests/regression/tools/health/Makefile.am b/tests/regression/tools/health/Makefile.am index 098fbf421..643dd31d2 100644 --- a/tests/regression/tools/health/Makefile.am +++ b/tests/regression/tools/health/Makefile.am @@ -2,10 +2,10 @@ AM_CFLAGS = -I. -O2 -g -I$(top_srcdir)/include AM_LDFLAGS = if LTTNG_TOOLS_BUILD_WITH_LIBDL -AM_LDFLAGS += -ldl +LIBS += -ldl endif if LTTNG_TOOLS_BUILD_WITH_LIBC_DL -AM_LDFLAGS += -lc +LIBS += -lc endif if NO_SHARED @@ -37,5 +37,21 @@ health_check_LDADD = $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \ $(top_builddir)/src/common/libcommon.la endif -dist_noinst_SCRIPTS = test_thread_exit test_thread_stall test_tp_fail -EXTRA_DIST = test_thread_exit test_thread_stall test_tp_fail +dist_noinst_SCRIPTS = test_thread_exit test_thread_stall test_tp_fail \ + test_health.sh test_thread_ok +EXTRA_DIST = test_thread_exit test_thread_stall test_tp_fail \ + test_health.sh test_thread_ok + +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