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 | Selection \
|
---|
14 | Simple_configuration \
|
---|
15 | Tesselation
|
---|
16 | TESTSUITE = $(srcdir)/testsuite
|
---|
17 |
|
---|
18 | TESTSCRIPTS = \
|
---|
19 | $(srcdir)/Analysis/testsuite-analysis.at \
|
---|
20 | $(srcdir)/Analysis/testsuite-analysis-pair-correlation.at \
|
---|
21 | $(srcdir)/Analysis/testsuite-analysis-point-correlation.at \
|
---|
22 | $(srcdir)/Analysis/testsuite-analysis-surface-correlation.at \
|
---|
23 | $(srcdir)/Analysis/PrincipalAxisSystem/testsuite-analysis-principal-axis-system.at \
|
---|
24 | $(srcdir)/Analysis/testsuite-analysis-angular-dipole-correlation-empty.at \
|
---|
25 | $(srcdir)/Analysis/testsuite-analysis-angular-dipole-correlation-discrete-angles.at \
|
---|
26 | $(srcdir)/Analysis/testsuite-analysis-angular-dipole-correlation-random-distribution.at \
|
---|
27 | $(srcdir)/testsuite-domain.at \
|
---|
28 | $(srcdir)/Filling/testsuite-filling.at \
|
---|
29 | $(srcdir)/Filling/testsuite-fill-with-molecule.at \
|
---|
30 | $(srcdir)/Filling/testsuite-suspend-in-water.at \
|
---|
31 | $(srcdir)/Filling/testsuite-fill-void-with-molecule.at \
|
---|
32 | $(srcdir)/testsuite-fragmentation.at \
|
---|
33 | $(srcdir)/testsuite-graph.at \
|
---|
34 | $(srcdir)/testsuite-molecules.at \
|
---|
35 | $(srcdir)/testsuite-simple_configuration.at \
|
---|
36 | $(srcdir)/Selection/testsuite-selection.at \
|
---|
37 | $(srcdir)/Selection/Atoms/testsuite-selection-all-atoms.at \
|
---|
38 | $(srcdir)/Selection/Atoms/testsuite-selection-atoms-by-element.at \
|
---|
39 | $(srcdir)/Selection/Atoms/testsuite-selection-atom-by-id.at \
|
---|
40 | $(srcdir)/Selection/Atoms/testsuite-selection-atoms-inside-cuboid.at \
|
---|
41 | $(srcdir)/Selection/Atoms/testsuite-selection-atoms-inside-sphere.at \
|
---|
42 | $(srcdir)/Selection/Atoms/testsuite-selection-atoms-of-molecule.at \
|
---|
43 | $(srcdir)/Selection/Atoms/testsuite-selection-clear-atoms.at \
|
---|
44 | $(srcdir)/Selection/Molecules/testsuite-selection-all-molecules.at \
|
---|
45 | $(srcdir)/Selection/Molecules/testsuite-selection-clear-molecules.at \
|
---|
46 | $(srcdir)/Selection/Molecules/testsuite-selection-molecules-by-formula.at \
|
---|
47 | $(srcdir)/Selection/Molecules/testsuite-selection-molecule-by-id.at \
|
---|
48 | $(srcdir)/Selection/Molecules/testsuite-selection-molecules-by-name.at \
|
---|
49 | $(srcdir)/Selection/Molecules/testsuite-selection-molecules-of-atoms.at \
|
---|
50 | $(srcdir)/testsuite-specifics.at \
|
---|
51 | $(srcdir)/testsuite-standard_options.at \
|
---|
52 | $(srcdir)/testsuite-tesselation.at
|
---|
53 |
|
---|
54 |
|
---|
55 | max_jobs = 4
|
---|
56 |
|
---|
57 | check-local: atconfig atlocal package.m4 $(TESTSUITE)
|
---|
58 | nrjobs=; \
|
---|
59 | for flag in $$MAKEFLAGS; do \
|
---|
60 | case $$flag in \
|
---|
61 | --* | =*=) ;; \
|
---|
62 | *j*) nrjobs="-j$(max_jobs)" ;; \
|
---|
63 | esac; \
|
---|
64 | done; \
|
---|
65 | $(SHELL) '$(TESTSUITE)' $$nrjobs $(TESTSUITEFLAGS)
|
---|
66 |
|
---|
67 | installcheck-local: atconfig atlocal $(TESTSUITE)
|
---|
68 | $(SHELL) '$(TESTSUITE)' AUTOTEST_PATH='$(bindir)' \
|
---|
69 | $(TESTSUITEFLAGS)
|
---|
70 |
|
---|
71 | clean-local:
|
---|
72 | test ! -f '$(TESTSUITE)' || \
|
---|
73 | $(SHELL) '$(TESTSUITE)' --clean
|
---|
74 |
|
---|
75 | AUTOTEST = $(AUTOM4TE) --language=autotest
|
---|
76 | $(TESTSUITE): $(srcdir)/testsuite.at $(TESTSCRIPTS)
|
---|
77 | $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
|
---|
78 | mv $@.tmp $@
|
---|
79 |
|
---|
80 | # The `:;' works around a Bash 3.2 bug when the output is not writeable.
|
---|
81 | $(srcdir)/package.m4: $(top_srcdir)/configure.ac
|
---|
82 | :;{ \
|
---|
83 | echo '# Signature of the current package.' && \
|
---|
84 | echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])' && \
|
---|
85 | echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])' && \
|
---|
86 | echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])' && \
|
---|
87 | echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])' && \
|
---|
88 | echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
|
---|
89 | } >'$(srcdir)/package.m4'
|
---|