]> git.draconx.ca Git - dxcommon.git/blobdiff - snippet/autotest.mk
Fix testsuite issues caught by distcheck.
[dxcommon.git] / snippet / autotest.mk
index b2baa2d09b4f45a2e5f019b636c9c9972898eb85..04643f13e7907fc910f7b15c127563d0a87cd02d 100644 (file)
 
 check-local: check-autotest
 check-autotest: testsuite
-       $(SHELL) testsuite $(TESTSUITEFLAGS)
+       $(SHELL) $? $(TESTSUITEFLAGS)
 .PHONY: check-autotest
 
 clean-local: clean-autotest
 clean-autotest:
-       test ! -f testsuite || $(SHELL) testsuite --clean
+       for f in testsuite "$(srcdir)/testsuite"; do \
+         test ! -f "$$f" || { $(SHELL) "$$f" --clean; break; }; \
+       done
 .PHONY: clean-autotest
 
 maintainer-clean-local: maintainer-clean-autotest
@@ -62,4 +64,6 @@ endif
        $(AM_V_at) mv -f $@.tmp $@
 
 EXTRA_DIST += testsuite testsuite.at package.m4
+DISTCLEANFILES += atconfig $(DEPDIR)/testsuite.P
+
 @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/testsuite.P@am__quote@