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