X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=tests%2Fsnprintf%2FMakefile.am;h=430215620246e4a3d6a529aad94db61526372080;hb=35ac38cb4cc188253c600766882b7a833f5a81ee;hp=9ca4f09a24d89d8494db333b9649f3f1f27481d3;hpb=d23b20e9573b260595f50e662e771d7a336ab07e;p=lttng-ust.git diff --git a/tests/snprintf/Makefile.am b/tests/snprintf/Makefile.am index 9ca4f09a..43021562 100644 --- a/tests/snprintf/Makefile.am +++ b/tests/snprintf/Makefile.am @@ -1,9 +1,24 @@ -AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/tests/ +AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/tests/utils noinst_PROGRAMS = prog prog_SOURCES = prog.c prog_LDADD = $(top_builddir)/snprintf/libustsnprintf.la \ - $(top_builddir)/tests/libtap.a + $(top_builddir)/tests/utils/libtap.a -noinst_SCRIPT = run -EXTRA_DIST = run +SCRIPT_LIST = test_snprintf + +dist_noinst_SCRIPTS = $(SCRIPT_LIST) + +all-local: + @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ + for script in $(SCRIPT_LIST); do \ + cp -f $(srcdir)/$$script $(builddir); \ + done; \ + fi + +clean-local: + @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ + for script in $(SCRIPT_LIST); do \ + rm -f $(builddir)/$$script; \ + done; \ + fi