X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Fhealth%2FMakefile.am;h=643dd31d2081b3deaba926d78575d26e3ee5770c;hb=3b0246b4f7c4da472630b2d7de7522b3715b5764;hp=94e54dfaf0655d6cba9cb21ba7c87c6eef494e98;hpb=5d2e1e66a968d9e555f9b8b00d0589ebfaf3de32;p=lttng-tools.git diff --git a/tests/regression/tools/health/Makefile.am b/tests/regression/tools/health/Makefile.am index 94e54dfaf..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 @@ -36,3 +36,22 @@ health_check_SOURCES = health_check.c $(UTILS) 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 \ + 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