X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=tests%2Fust-elf%2FMakefile.am;h=203272ed155d7a057ebdd7ab832aaea06ab08f45;hb=d742d2aadf357e5256a0d06196dbffcbf80294b2;hp=3cb544235c0551b1eb982a6dc89df2191ec30652;hpb=22609c7a82c5c8ebc07c19cade9b4d6ff61bd0d0;p=lttng-ust.git diff --git a/tests/ust-elf/Makefile.am b/tests/ust-elf/Makefile.am index 3cb54423..203272ed 100644 --- a/tests/ust-elf/Makefile.am +++ b/tests/ust-elf/Makefile.am @@ -5,20 +5,24 @@ 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/main.c \ + $(srcdir)/data/aarch64_be/main.elf \ + $(srcdir)/data/aarch64_be/main.elf.debug \ + $(srcdir)/data/armeb/main.elf \ + $(srcdir)/data/armeb/main.elf.debug \ + $(srcdir)/data/x86/main.elf \ + $(srcdir)/data/x86/main.elf.debug \ + $(srcdir)/data/x86_64/main.elf \ + $(srcdir)/data/x86_64/main.elf.debug \ + $(srcdir)/data/pic/hello.exec \ + $(srcdir)/data/pic/hello.pie \ + $(srcdir)/data/pic/hello.pic \ + $(srcdir)/data/pic/hello.c \ + $(srcdir)/data/pic/libhello.c -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 $@