X-Git-Url: https://git.draconx.ca/gitweb/dxcommon.git/blobdiff_plain/67d36b0273cd1b9e449ff0de4ba045173bdc153c..c68b1198b4b11d686384cba21bf7f82e431ef542:/snippet/autotest.mk diff --git a/snippet/autotest.mk b/snippet/autotest.mk index b2baa2d..04643f1 100644 --- a/snippet/autotest.mk +++ b/snippet/autotest.mk @@ -19,12 +19,14 @@ 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@