X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=tests%2Fust-elf%2FMakefile.am;h=92337e769248e60c9a6a526b7099d7c920442380;hb=4ed2398507da76ed80dd09b996242066fa34e2a0;hp=3cb544235c0551b1eb982a6dc89df2191ec30652;hpb=22609c7a82c5c8ebc07c19cade9b4d6ff61bd0d0;p=lttng-ust.git diff --git a/tests/ust-elf/Makefile.am b/tests/ust-elf/Makefile.am index 3cb54423..92337e76 100644 --- a/tests/ust-elf/Makefile.am +++ b/tests/ust-elf/Makefile.am @@ -5,20 +5,10 @@ prog_SOURCES = prog.c prog_LDADD = $(top_builddir)/liblttng-ust/liblttng-ust.la \ $(top_builddir)/tests/utils/libtap.a -SCRIPT_LIST = test_ust_elf +noinst_SCRIPTS = test_ust_elf +CLEANFILES = $(noinst_SCRIPTS) +EXTRA_DIST = test_ust_elf.in $(srcdir)/data/** -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 +$(noinst_SCRIPTS): %: %.in + sed "s#@ABSTOPSRCDIR@#$(abs_top_srcdir)#g" < $< > $@ + chmod +x $@