[abfc95] | 1 | AUTOM4TE = autom4te
|
---|
| 2 |
|
---|
| 3 | TESTSUITE = $(srcdir)/testsuite
|
---|
| 4 |
|
---|
| 5 | TESTSCRIPTS = \
|
---|
| 6 | testsuite-calculations-1_2-dimethoxyethane.at \
|
---|
| 7 | testsuite-calculations-1_2-dimethylbenzene.at \
|
---|
| 8 | testsuite-calculations-2-methylcyclohexanone.at \
|
---|
| 9 | testsuite-calculations-anthracene.at \
|
---|
| 10 | testsuite-calculations-benzene.at \
|
---|
| 11 | testsuite-calculations-cholesterol.at \
|
---|
| 12 | testsuite-calculations-coronene.at \
|
---|
| 13 | testsuite-calculations-cycloheptane.at \
|
---|
| 14 | testsuite-calculations-dimethyl_bromomalonate.at \
|
---|
| 15 | testsuite-calculations-glucose.at \
|
---|
| 16 | testsuite-calculations-heptan.at \
|
---|
| 17 | testsuite-calculations-isoleucine.at \
|
---|
| 18 | testsuite-calculations-mpqc.at \
|
---|
| 19 | testsuite-calculations-naphthalene.at \
|
---|
| 20 | testsuite-calculations-neohexane.at \
|
---|
| 21 | testsuite-calculations-N_N-dimethylacetamide.at \
|
---|
| 22 | testsuite-calculations-phenanthrene.at \
|
---|
| 23 | testsuite-calculations-proline.at \
|
---|
| 24 | testsuite-calculations-putrescine.at \
|
---|
| 25 | testsuite-calculations-tartaric_acid.at
|
---|
| 26 |
|
---|
| 27 | DISTCLEANFILES = atconfig
|
---|
| 28 |
|
---|
| 29 | EXTRA_DIST = \
|
---|
| 30 | atlocal.in \
|
---|
| 31 | package.m4 \
|
---|
| 32 | testsuite.at \
|
---|
| 33 | $(TESTSUITE) \
|
---|
| 34 | $(TESTSCRIPTS)
|
---|
| 35 |
|
---|
| 36 | max_jobs = 4
|
---|
| 37 |
|
---|
| 38 | if CONDJOBMARKET
|
---|
| 39 |
|
---|
| 40 | extracheck:
|
---|
| 41 | installextracheck:
|
---|
| 42 |
|
---|
| 43 | else
|
---|
| 44 |
|
---|
| 45 | extracheck: atlocal package.m4 $(TESTSUITE)
|
---|
| 46 | nrjobs=; \
|
---|
| 47 | for flag in $$MAKEFLAGS; do \
|
---|
| 48 | case $$flag in \
|
---|
| 49 | --* | =*=) ;; \
|
---|
| 50 | *j*) nrjobs="-j$(max_jobs)" ;; \
|
---|
| 51 | esac; \
|
---|
| 52 | done; \
|
---|
| 53 | $(SHELL) '$(TESTSUITE)' $$nrjobs AUTOTEST_PATH='$(abs_top_builddir)/src' $(TESTSUITEFLAGS)
|
---|
| 54 |
|
---|
| 55 | installextracheck: atconfig atlocal $(TESTSUITE)
|
---|
| 56 | nrjobs=; \
|
---|
| 57 | for flag in $$MAKEFLAGS; do \
|
---|
| 58 | case $$flag in \
|
---|
| 59 | --* | =*=) ;; \
|
---|
| 60 | *j*) nrjobs="-j$(max_jobs)" ;; \
|
---|
| 61 | esac; \
|
---|
| 62 | done; \
|
---|
| 63 | $(SHELL) '$(TESTSUITE)' $$nrjobs AUTOTEST_PATH='$(bindir)' $(TESTSUITEFLAGS)
|
---|
| 64 |
|
---|
| 65 | endif
|
---|
| 66 |
|
---|
| 67 | clean-local:
|
---|
| 68 | test ! -f '$(TESTSUITE)' || \
|
---|
| 69 | $(SHELL) '$(TESTSUITE)' --clean
|
---|
| 70 |
|
---|
| 71 | AUTOTEST = $(AUTOM4TE) --language=autotest
|
---|
| 72 | $(TESTSUITE): $(srcdir)/testsuite.at package.m4 $(TESTSCRIPTS)
|
---|
| 73 | $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
|
---|
| 74 | mv $@.tmp $@
|
---|
| 75 |
|
---|
| 76 | # The `:;' works around a Bash 3.2 bug when the output is not writeable.
|
---|
| 77 | package.m4: $(top_srcdir)/configure.ac
|
---|
| 78 | :;{ \
|
---|
| 79 | echo '# Signature of the current package.' && \
|
---|
| 80 | echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])' && \
|
---|
| 81 | echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])' && \
|
---|
| 82 | echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])' && \
|
---|
| 83 | echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])' && \
|
---|
| 84 | echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
|
---|
| 85 | } >'package.m4'
|
---|