1 | AUTOM4TE = autom4te
|
---|
2 | EXTRA_DIST = \
|
---|
3 | testsuite*.at \
|
---|
4 | $(TESTSUITE) \
|
---|
5 | atlocal.in \
|
---|
6 | molecuider.in \
|
---|
7 | Analysis \
|
---|
8 | Domain \
|
---|
9 | Filling \
|
---|
10 | Fragmentation \
|
---|
11 | Graph \
|
---|
12 | Molecules \
|
---|
13 | RandomNumbers \
|
---|
14 | Selection \
|
---|
15 | Simple_configuration \
|
---|
16 | Tesselation
|
---|
17 | TESTSUITE = $(srcdir)/testsuite
|
---|
18 |
|
---|
19 | TESTSCRIPTS = \
|
---|
20 | $(srcdir)/Analysis/testsuite-analysis.at \
|
---|
21 | $(srcdir)/Analysis/PairCorrelation/testsuite-analysis-pair-correlation.at \
|
---|
22 | $(srcdir)/Analysis/PairCorrelation-RangeTest/testsuite-analysis-pair-correlation-range-test.at \
|
---|
23 | $(srcdir)/Analysis/PointCorrelation/testsuite-analysis-point-correlation.at \
|
---|
24 | $(srcdir)/Analysis/SurfaceCorrelation/testsuite-analysis-surface-correlation.at \
|
---|
25 | $(srcdir)/Analysis/PrincipalAxisSystem/testsuite-analysis-principal-axis-system.at \
|
---|
26 | $(srcdir)/Analysis/AngularDipoleCorrelation-Empty/testsuite-analysis-angular-dipole-correlation-empty.at \
|
---|
27 | $(srcdir)/Analysis/AngularDipoleCorrelation-DiscreteAngles/testsuite-analysis-angular-dipole-correlation-discrete-angles.at \
|
---|
28 | $(srcdir)/Domain/testsuite-domain.at \
|
---|
29 | $(srcdir)/Domain/ChangeBox/testsuite-domain-change-box.at \
|
---|
30 | $(srcdir)/Domain/CenterInBox/testsuite-domain-center-in-box.at \
|
---|
31 | $(srcdir)/Domain/AddEmptyBoundary/testsuite-domain-add-empty-boundary.at \
|
---|
32 | $(srcdir)/Domain/CenterOnEdge/testsuite-domain-center-on-edge.at \
|
---|
33 | $(srcdir)/Domain/ScaleBox/testsuite-domain-scale-box.at \
|
---|
34 | $(srcdir)/Domain/RepeatBox/testsuite-domain-repeat-box.at \
|
---|
35 | $(srcdir)/Filling/testsuite-filling.at \
|
---|
36 | $(srcdir)/Filling/FillWithMolecule/testsuite-fill-with-molecule.at \
|
---|
37 | $(srcdir)/Filling/SuspendInWater/testsuite-suspend-in-water.at \
|
---|
38 | $(srcdir)/Filling/FillVoidWithMolecule/testsuite-fill-void-with-molecule.at \
|
---|
39 | $(srcdir)/Fragmentation/testsuite-fragmentation.at \
|
---|
40 | $(srcdir)/Fragmentation/testsuite-fragmentation-config-check.at \
|
---|
41 | $(srcdir)/Fragmentation/testsuite-fragmentation-2nd-order.at \
|
---|
42 | $(srcdir)/Fragmentation/testsuite-fragmentation-maxorder.at \
|
---|
43 | $(srcdir)/testsuite-graph.at \
|
---|
44 | $(srcdir)/testsuite-molecules.at \
|
---|
45 | $(srcdir)/testsuite-simple_configuration.at \
|
---|
46 | $(srcdir)/RandomNumbers/testsuite-randomnumbers.at \
|
---|
47 | $(srcdir)/RandomNumbers/Distribution/testsuite-set-random-number-distribution.at \
|
---|
48 | $(srcdir)/RandomNumbers/Engine/testsuite-set-random-number-engine.at \
|
---|
49 | $(srcdir)/Selection/testsuite-selection.at \
|
---|
50 | $(srcdir)/Selection/Atoms/testsuite-selection-all-atoms.at \
|
---|
51 | $(srcdir)/Selection/Atoms/testsuite-selection-atoms-by-element.at \
|
---|
52 | $(srcdir)/Selection/Atoms/testsuite-selection-atom-by-id.at \
|
---|
53 | $(srcdir)/Selection/Atoms/testsuite-selection-atoms-inside-cuboid.at \
|
---|
54 | $(srcdir)/Selection/Atoms/testsuite-selection-atoms-inside-sphere.at \
|
---|
55 | $(srcdir)/Selection/Atoms/testsuite-selection-atoms-of-molecule.at \
|
---|
56 | $(srcdir)/Selection/Atoms/testsuite-selection-clear-atoms.at \
|
---|
57 | $(srcdir)/Selection/Molecules/testsuite-selection-all-molecules.at \
|
---|
58 | $(srcdir)/Selection/Molecules/testsuite-selection-clear-molecules.at \
|
---|
59 | $(srcdir)/Selection/Molecules/testsuite-selection-molecules-by-formula.at \
|
---|
60 | $(srcdir)/Selection/Molecules/testsuite-selection-molecule-by-id.at \
|
---|
61 | $(srcdir)/Selection/Molecules/testsuite-selection-molecules-by-name.at \
|
---|
62 | $(srcdir)/Selection/Molecules/testsuite-selection-molecules-of-atoms.at \
|
---|
63 | $(srcdir)/testsuite-specifics.at \
|
---|
64 | $(srcdir)/testsuite-standard_options.at \
|
---|
65 | $(srcdir)/testsuite-tesselation.at
|
---|
66 |
|
---|
67 |
|
---|
68 | max_jobs = 4
|
---|
69 |
|
---|
70 | check-local: atconfig atlocal package.m4 $(TESTSUITE)
|
---|
71 | nrjobs=; \
|
---|
72 | for flag in $$MAKEFLAGS; do \
|
---|
73 | case $$flag in \
|
---|
74 | --* | =*=) ;; \
|
---|
75 | *j*) nrjobs="-j$(max_jobs)" ;; \
|
---|
76 | esac; \
|
---|
77 | done; \
|
---|
78 | $(SHELL) '$(TESTSUITE)' $$nrjobs $(TESTSUITEFLAGS)
|
---|
79 |
|
---|
80 | installcheck-local: atconfig atlocal $(TESTSUITE)
|
---|
81 | $(SHELL) '$(TESTSUITE)' AUTOTEST_PATH='$(bindir)' \
|
---|
82 | $(TESTSUITEFLAGS)
|
---|
83 |
|
---|
84 | clean-local:
|
---|
85 | test ! -f '$(TESTSUITE)' || \
|
---|
86 | $(SHELL) '$(TESTSUITE)' --clean
|
---|
87 |
|
---|
88 | AUTOTEST = $(AUTOM4TE) --language=autotest
|
---|
89 | $(TESTSUITE): $(srcdir)/testsuite.at $(TESTSCRIPTS)
|
---|
90 | $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
|
---|
91 | mv $@.tmp $@
|
---|
92 |
|
---|
93 | # The `:;' works around a Bash 3.2 bug when the output is not writeable.
|
---|
94 | $(srcdir)/package.m4: $(top_srcdir)/configure.ac
|
---|
95 | :;{ \
|
---|
96 | echo '# Signature of the current package.' && \
|
---|
97 | echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])' && \
|
---|
98 | echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])' && \
|
---|
99 | echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])' && \
|
---|
100 | echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])' && \
|
---|
101 | echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
|
---|
102 | } >'$(srcdir)/package.m4'
|
---|