tests: Distribute testsuite.at and loosen its dependencies.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 9 Oct 2010 03:24:14 +0000 (20:24 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 9 Oct 2010 03:24:14 +0000 (20:24 -0700)
testsuite.at has to be distributed or "make" from a distributed tarball
will have to make it, which means that the system used for building needs
Autoconf installed and will need to write to the source directory.

testsuite.at cannot depend on the Makefile or it will have to be rebuilt
every time "configure" runs, which would also cause the problems mentioned
above.

tests/automake.mk

index 8f1e3a48615d0e1eb6107da7bb9f14e83ff1773b..00a6070850a48243d6950ec73498e180668873c8 100644 (file)
@@ -392,12 +392,12 @@ TESTSUITE_AT = \
 TESTSUITE = $(srcdir)/tests/testsuite
 DISTCLEANFILES += tests/atconfig tests/atlocal $(TESTSUITE)
 
-$(srcdir)/tests/testsuite.at: tests/testsuite.in Makefile
+$(srcdir)/tests/testsuite.at: tests/testsuite.in tests/automake.mk
        cp $< $@
        for t in $(TESTSUITE_AT); do \
          echo "m4_include([$$t])" >> $@ ;\
        done
-
+EXTRA_DIST += tests/testsuite.at
 
 CHECK_LOCAL += tests_check
 tests_check: tests/atconfig tests/atlocal $(TESTSUITE) $(check_PROGRAMS)