X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Futils%2Ftap%2FMakefile.am;h=a914b781313ec8c02f556b3fcc0104bfc3c83942;hb=2a69bf1437eb7e81979a1410b1a66a960b52caeb;hp=d3b5b58f18a6bb401294495d04b7f4b6062e4e6e;hpb=ffe503518b9779c9ac076fc87c21db674f89ae6a;p=lttng-tools.git diff --git a/tests/utils/tap/Makefile.am b/tests/utils/tap/Makefile.am index d3b5b58f1..a914b7813 100644 --- a/tests/utils/tap/Makefile.am +++ b/tests/utils/tap/Makefile.am @@ -1,4 +1,26 @@ +# 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