Handle VPATH builds properly by dealing with testsuite in either
builddir or srcdir. Also clean out configure-generated files on
distclean.
t_packtestu64_SOURCES = t/packtestu64.c src/pack.c src/tap.c
t_packtests64_SOURCES = t/packtests64.c src/pack.c src/tap.c
t_packtestu64_SOURCES = t/packtestu64.c src/pack.c src/tap.c
t_packtests64_SOURCES = t/packtests64.c src/pack.c src/tap.c
check-local: check-autotest
check-autotest: testsuite
check-local: check-autotest
check-autotest: testsuite
- $(SHELL) testsuite $(TESTSUITEFLAGS)
+ $(SHELL) $? $(TESTSUITEFLAGS)
.PHONY: check-autotest
clean-local: clean-autotest
clean-autotest:
.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
.PHONY: clean-autotest
maintainer-clean-local: maintainer-clean-autotest
$(AM_V_at) mv -f $@.tmp $@
EXTRA_DIST += testsuite testsuite.at package.m4
$(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@
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/testsuite.P@am__quote@