1 | AUTOM4TE = $(SHELL) $(top_srcdir)/build-aux/missing --run autom4te
|
---|
2 |
|
---|
3 | if CONDJOBMARKET
|
---|
4 | TESTSUITE = $(srcdir)/testsuite
|
---|
5 | endif
|
---|
6 |
|
---|
7 | DISTCLEANFILES = atconfig
|
---|
8 |
|
---|
9 | TESTSCRIPTS =
|
---|
10 |
|
---|
11 | if CONDJOBMARKET
|
---|
12 | TESTSCRIPTS += \
|
---|
13 | $(srcdir)/testsuite-integration.at \
|
---|
14 | $(srcdir)/FragmentJobs/testsuite-integration-fragmentjobs.at \
|
---|
15 | $(srcdir)/FragmentJobs/testsuite-integration-fragmentjobs-mpqc-jobs.at \
|
---|
16 | $(srcdir)/FragmentJobs/testsuite-integration-fragmentjobs-vmg-jobs.at \
|
---|
17 | $(srcdir)/MolecularDynamics/testsuite-integration-moleculardynamics.at \
|
---|
18 | $(srcdir)/MolecularDynamics/testsuite-integration-moleculardynamics-water.at \
|
---|
19 | $(srcdir)/MolecularDynamics/testsuite-integration-moleculardynamics-methane.at \
|
---|
20 | $(srcdir)/MolecularDynamics/testsuite-integration-moleculardynamics-ethane.at \
|
---|
21 | $(srcdir)/MolecularDynamics/testsuite-integration-moleculardynamics-water-system.at \
|
---|
22 | $(srcdir)/PotentialFitting/testsuite-integration-potentialfitting.at \
|
---|
23 | $(srcdir)/PotentialFitting/testsuite-integration-potentialfitting-water.at \
|
---|
24 | $(srcdir)/StructureOptimization/testsuite-integration-structureoptimization.at \
|
---|
25 | $(srcdir)/StructureOptimization/testsuite-integration-structureoptimization-water.at \
|
---|
26 | $(srcdir)/StructureOptimization/testsuite-integration-structureoptimization-methane.at \
|
---|
27 | $(srcdir)/StructureOptimization/testsuite-integration-structureoptimization-ethane.at
|
---|
28 | endif
|
---|
29 |
|
---|
30 | EXTRA_DIST = \
|
---|
31 | testsuite.at \
|
---|
32 | $(TESTSUITE) \
|
---|
33 | atlocal.in \
|
---|
34 | molecuilder.in \
|
---|
35 | molecuilder_poolworker.in \
|
---|
36 | package.m4 \
|
---|
37 | FragmentJobs \
|
---|
38 | MolecularDynamics \
|
---|
39 | PotentialFitting \
|
---|
40 | StructureOptimization \
|
---|
41 | $(TESTSCRIPTS)
|
---|
42 |
|
---|
43 | if CONDJOBMARKET
|
---|
44 | max_jobs = 8
|
---|
45 |
|
---|
46 | check-local: atconfig atlocal $(TESTSUITE) $(TESTSCRIPTS)
|
---|
47 | nrjobs=; \
|
---|
48 | for flag in $$MAKEFLAGS; do \
|
---|
49 | case $$flag in \
|
---|
50 | --* | =*=) ;; \
|
---|
51 | *j*) nrjobs="-j$(max_jobs)" ;; \
|
---|
52 | esac; \
|
---|
53 | done; \
|
---|
54 | $(SHELL) '$(TESTSUITE)' $$nrjobs AUTOTEST_PATH='$(abs_top_builddir)/src' $(TESTSUITEFLAGS)
|
---|
55 |
|
---|
56 | installcheck-local: atconfig atlocal $(TESTSUITE)
|
---|
57 | nrjobs=; \
|
---|
58 | for flag in $$MAKEFLAGS; do \
|
---|
59 | case $$flag in \
|
---|
60 | --* | =*=) ;; \
|
---|
61 | *j*) nrjobs="-j$(max_jobs)" ;; \
|
---|
62 | esac; \
|
---|
63 | done; \
|
---|
64 | $(SHELL) '$(TESTSUITE)' $$nrjobs AUTOTEST_PATH='$(bindir)' $(TESTSUITEFLAGS)
|
---|
65 |
|
---|
66 | clean-local:
|
---|
67 | test ! -f '$(TESTSUITE)' || \
|
---|
68 | $(SHELL) '$(TESTSUITE)' --clean
|
---|
69 |
|
---|
70 | AUTOTEST = $(AUTOM4TE) --language=autotest
|
---|
71 | $(TESTSUITE): $(srcdir)/testsuite.at package.m4 $(TESTSCRIPTS)
|
---|
72 | $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
|
---|
73 | mv $@.tmp $@
|
---|
74 | endif
|
---|
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'
|
---|