X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=tests%2Futils%2Ftap%2FMakefile.am;h=a914b781313ec8c02f556b3fcc0104bfc3c83942;hb=83dc3923fa4b0fc2e0ad091392aea64cac046498;hp=14cd2349776819b6889855f584c784a9079b4c42;hpb=431387b05242f3cd52771cd4cdb3f09e9ef9a560;p=lttng-tools.git diff --git a/tests/utils/tap/Makefile.am b/tests/utils/tap/Makefile.am index 14cd23497..a914b7813 100644 --- a/tests/utils/tap/Makefile.am +++ b/tests/utils/tap/Makefile.am @@ -1,4 +1,26 @@ -lib_LTLIBRARIES = libtap.la +# SPDX-License-Identifier: GPL-2.0-only + +AM_CPPFLAGS += -I$(top_srcdir)/src/ -I$(top_srcdir)/include + +noinst_PROGRAMS = clock +clock_SOURCES = clock.cpp +clock_CPPFLAGS = $(AM_CPPFLAGS) +noinst_LTLIBRARIES = libtap.la libtap_la_SOURCES = tap.c tap.h +libtap_la_LIBADD = ../libtestutils.la dist_noinst_SCRIPTS = tap.sh EXTRA_DIST = tap.sh + +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