projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: tests: don't build dynamic lib tests if support disabled
[lttng-tools.git]
/
tests
/
regression
/
tools
/
health
/
Makefile.am
diff --git
a/tests/regression/tools/health/Makefile.am
b/tests/regression/tools/health/Makefile.am
index 643dd31d2081b3deaba926d78575d26e3ee5770c..4d835f3dfa4d360fe4b4538de2679197a97af519 100644
(file)
--- a/
tests/regression/tools/health/Makefile.am
+++ b/
tests/regression/tools/health/Makefile.am
@@
-8,9
+8,17
@@
if LTTNG_TOOLS_BUILD_WITH_LIBC_DL
LIBS += -lc
endif
LIBS += -lc
endif
+COPYSCRIPTS = test_thread_exit test_thread_stall test_tp_fail \
+ test_health.sh test_thread_ok
+dist_noinst_SCRIPTS = $(COPYSCRIPTS)
+
if NO_SHARED
# Do not build this test if shared libraries support was
# explicitly disabled.
if NO_SHARED
# Do not build this test if shared libraries support was
# explicitly disabled.
+
+EXTRA_DIST = health_exit.c health_stall.c health_fail.c \
+ health_check.c $(COPYSCRIPTS)
+
else
# In order to test the health check feature, the libhealth* libs
# must be built as .so to be able to LD_PRELOAD them.
else
# In order to test the health check feature, the libhealth* libs
# must be built as .so to be able to LD_PRELOAD them.
@@
-35,23
+43,21
@@
noinst_LTLIBRARIES = libhealthexit.la libhealthstall.la libhealthtpfail.la
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
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
+EXTRA_DIST = $(COPYSCRIPTS)
+
+endif
all-local:
@if [ x"$(srcdir)" != x"$(builddir)" ]; then \
all-local:
@if [ x"$(srcdir)" != x"$(builddir)" ]; then \
- for script in $(
EXTRA_DIST
); do \
+ for script in $(
COPYSCRIPTS
); do \
cp -f $(srcdir)/$$script $(builddir); \
done; \
fi
clean-local:
@if [ x"$(srcdir)" != x"$(builddir)" ]; then \
cp -f $(srcdir)/$$script $(builddir); \
done; \
fi
clean-local:
@if [ x"$(srcdir)" != x"$(builddir)" ]; then \
- for script in $(
EXTRA_DIST
); do \
+ for script in $(
COPYSCRIPTS
); do \
rm -f $(builddir)/$$script; \
done; \
fi
rm -f $(builddir)/$$script; \
done; \
fi
This page took
0.02579 seconds
and
5
git commands to generate.