-AM_CFLAGS = $(PACKAGE_CFLAGS) -I$(top_srcdir)/include
+SUBDIRS = utils bin lib
-noinst_PROGRAMS = test-bitfield test-dummytrace
+EXTRA_DIST = ctf-traces/** tests
-test_bitfield_SOURCES = test-bitfield.c
+SCRIPT_LIST = run.sh
-test_dummytrace_SOURCES = test-dummytrace.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
+
+check-am:
+ ./run.sh tests