]> granicus.if.org Git - libevent/commitdiff
Avoid using top_srcdir in TESTS-new automakes do not like this
authorNick Mathewson <nickm@torproject.org>
Sat, 9 Feb 2013 03:08:18 +0000 (22:08 -0500)
committerNick Mathewson <nickm@torproject.org>
Sat, 9 Feb 2013 03:08:18 +0000 (22:08 -0500)
test/Makefile.am

index b10c41a8894c86f007d4987b29bff4a03680aca5..0253a49170dc35b1aad367230073de64979e45cc 100644 (file)
@@ -19,7 +19,14 @@ endif
 EXTRA_PROGRAMS = regress
 noinst_HEADERS = tinytest.h tinytest_macros.h regress.h tinytest_local.h
 
-TESTS = $(top_srcdir)/test/test.sh
+# We need to copy this file, since automake doesn't want us to use top_srcdir
+# in TESTS.
+TESTS = test-script.sh
+
+test-script.sh: test.sh
+       cp $< $@
+
+DISTCLEANFILES = test-script.sh
 
 BUILT_SOURCES =
 if BUILD_REGRESS
@@ -91,7 +98,7 @@ rpcgen-attempted: $(srcdir)/regress.rpc $(srcdir)/../event_rpcgen.py $(srcdir)/r
 
 CLEANFILES = rpcgen-attempted
 
-DISTCLEANFILES = *~
+DISTCLEANFILES += *~
 
 verify: check