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