SUBDIRS += hello.cxx
endif
-dist_noinst_SCRIPTS = test_loop run.sh unit_tests
+SCRIPT_LIST = test_loop run.sh unit_tests
+
+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 unit_tests
prog_LDADD = $(top_builddir)/snprintf/libustsnprintf.la \
$(top_builddir)/tests/utils/libtap.a
-dist_noinst_SCRIPTS = test_snprintf
+SCRIPT_LIST = test_snprintf
+
+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