AUTOM4TE = $(SHELL) $(top_srcdir)/build-aux/missing --run autom4te EXTRA_DIST = \ testsuite.at \ $(TESTSUITE) \ atlocal.in \ package.m4 \ AllActions \ BoxMaker \ CommandHelp \ ReturnValueActions if CONDPYTHON TESTSUITE = $(srcdir)/testsuite endif DISTCLEANFILES = atconfig TESTSCRIPTS = if CONDPYTHON TESTSCRIPTS += \ $(srcdir)/AllActions/testsuite-python-allactions.at \ $(srcdir)/AllActions/testsuite-python-options_dat.at \ $(srcdir)/BoxMaker/testsuite-python-boxmaker.at \ $(srcdir)/CommandHelp/testsuite-python-commandhelp.at \ $(srcdir)/ReturnValueActions/testsuite-python-returnvalueactions.at max_jobs = 4 check-local: atconfig atlocal $(TESTSUITE) nrjobs=; \ for flag in $$MAKEFLAGS; do \ case $$flag in \ --* | =*=) ;; \ *j*) nrjobs="-j$(max_jobs)" ;; \ esac; \ done; \ $(SHELL) '$(TESTSUITE)' $$nrjobs AUTOTEST_PATH='$(abs_top_builddir)/src' $(TESTSUITEFLAGS) installcheck-local: atconfig atlocal $(TESTSUITE) nrjobs=; \ for flag in $$MAKEFLAGS; do \ case $$flag in \ --* | =*=) ;; \ *j*) nrjobs="-j$(max_jobs)" ;; \ esac; \ done; \ $(SHELL) '$(TESTSUITE)' $$nrjobs AUTOTEST_PATH='$(bindir)' $(TESTSUITEFLAGS) clean-local: test ! -f '$(TESTSUITE)' || \ $(SHELL) '$(TESTSUITE)' --clean AUTOTEST = $(AUTOM4TE) --language=autotest $(TESTSUITE): $(srcdir)/testsuite.at package.m4 $(TESTSCRIPTS) $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at mv $@.tmp $@ endif # The `:;' works around a Bash 3.2 bug when the output is not writeable. package.m4: $(top_srcdir)/configure.ac :;{ \ echo '# Signature of the current package.' && \ echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])' && \ echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])' && \ echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])' && \ echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])' && \ echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \ } >'package.m4'