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 | endif
|
---|
20 |
|
---|
21 | EXTRA_DIST = \
|
---|
22 | testsuite.at \
|
---|
23 | $(TESTSUITE) \
|
---|
24 | atlocal.in \
|
---|
25 | molecuilder.in \
|
---|
26 | molecuilder_poolworker.in \
|
---|
27 | package.m4 \
|
---|
28 | pre \
|
---|
29 | $(TESTSCRIPTS)
|
---|
30 |
|
---|
31 | if CONDJOBMARKET
|
---|
32 | max_jobs = 8
|
---|
33 |
|
---|
34 | check-local: atconfig atlocal $(TESTSUITE) $(TESTSCRIPTS)
|
---|
35 | nrjobs=; \
|
---|
36 | for flag in $$MAKEFLAGS; do \
|
---|
37 | case $$flag in \
|
---|
38 | --* | =*=) ;; \
|
---|
39 | *j*) nrjobs="-j$(max_jobs)" ;; \
|
---|
40 | esac; \
|
---|
41 | done; \
|
---|
42 | $(SHELL) '$(TESTSUITE)' $$nrjobs AUTOTEST_PATH='$(abs_top_builddir)/src' $(TESTSUITEFLAGS)
|
---|
43 |
|
---|
44 | installcheck-local: atconfig atlocal $(TESTSUITE)
|
---|
45 | nrjobs=; \
|
---|
46 | for flag in $$MAKEFLAGS; do \
|
---|
47 | case $$flag in \
|
---|
48 | --* | =*=) ;; \
|
---|
49 | *j*) nrjobs="-j$(max_jobs)" ;; \
|
---|
50 | esac; \
|
---|
51 | done; \
|
---|
52 | $(SHELL) '$(TESTSUITE)' $$nrjobs AUTOTEST_PATH='$(bindir)' $(TESTSUITEFLAGS)
|
---|
53 |
|
---|
54 | clean-local:
|
---|
55 | test ! -f '$(TESTSUITE)' || \
|
---|
56 | $(SHELL) '$(TESTSUITE)' --clean
|
---|
57 |
|
---|
58 | AUTOTEST = $(AUTOM4TE) --language=autotest
|
---|
59 | $(TESTSUITE): $(srcdir)/testsuite.at package.m4 $(TESTSCRIPTS)
|
---|
60 | $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
|
---|
61 | mv $@.tmp $@
|
---|
62 | endif
|
---|
63 |
|
---|
64 | # The `:;' works around a Bash 3.2 bug when the output is not writeable.
|
---|
65 | 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 | } >'package.m4'
|
---|