X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=tests%2Fregression%2Fust%2Foverlap%2Fdemo%2FMakefile.am;h=4d4efb154b5542da867b37817199e8e9582d107d;hb=343af227102f6b274bfd7f6c7220eb3b776ba5e3;hp=68b6e087f84f506aeaf9137e43bc659ad9f5f0c9;hpb=5d2e1e66a968d9e555f9b8b00d0589ebfaf3de32;p=lttng-tools.git diff --git a/tests/regression/ust/overlap/demo/Makefile.am b/tests/regression/ust/overlap/demo/Makefile.am index 68b6e087f..4d4efb154 100644 --- a/tests/regression/ust/overlap/demo/Makefile.am +++ b/tests/regression/ust/overlap/demo/Makefile.am @@ -1,8 +1,17 @@ -AM_CFLAGS=-I$(srcdir) if NO_SHARED # Do not build this test if shared libraries support was # explicitly disabled. + +CLEANFILES = demo + +EXTRA_DIST = demo-trace demo.c ust_tests_demo.h \ + tp3.c ust_tests_demo3.h tp2.c ust_tests_demo2.h \ + tp.c ust_tests_demo.h + else + +AM_CPPFLAGS += -I$(srcdir) + # Force the shared flag on the noinst libraries since they are # only built static by default FORCE_SHARED_LIB_OPTIONS = -module -shared -avoid-version \ @@ -35,4 +44,19 @@ endif noinst_SCRIPTS = demo-trace EXTRA_DIST = demo-trace + +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 + endif