1 | AUTOM4TE = $(SHELL) $(top_srcdir)/build-aux/missing --run autom4te
|
---|
2 |
|
---|
3 | if CONDJOBMARKET
|
---|
4 | mpqc_SOURCES = mpqc.cpp
|
---|
5 | mpqc_CPPFLAGS = $(AM_CPPFLAGS) ${CodePatterns_CFLAGS} $(BOOST_CPPFLAGS)
|
---|
6 | mpqc_LDFLAGS = $(AM_LDFLAGS) ${CodePatterns_LDFLAGS}
|
---|
7 | mpqc_LDADD = \
|
---|
8 | ${CodePatterns_LIBS}
|
---|
9 |
|
---|
10 | noinst_PROGRAMS = mpqc
|
---|
11 | endif
|
---|
12 |
|
---|
13 | if CONDJOBMARKET
|
---|
14 | TESTSUITE = $(srcdir)/testsuite
|
---|
15 | endif
|
---|
16 |
|
---|
17 | DISTCLEANFILES = atconfig
|
---|
18 |
|
---|
19 | TESTSCRIPTS =
|
---|
20 |
|
---|
21 | if CONDJOBMARKET
|
---|
22 | TESTSCRIPTS += \
|
---|
23 | $(srcdir)/testsuite-jobmarket.at \
|
---|
24 | $(srcdir)/testsuite-jobmarket-molecuilderrun.at \
|
---|
25 | $(srcdir)/testsuite-jobmarket-mpqc-jobs.at \
|
---|
26 | $(srcdir)/testsuite-jobmarket-stand-in-mpqc.at
|
---|
27 | endif
|
---|
28 |
|
---|
29 | EXTRA_DIST = \
|
---|
30 | testsuite.at \
|
---|
31 | $(TESTSUITE) \
|
---|
32 | atlocal.in \
|
---|
33 | molecuilder.in \
|
---|
34 | package.m4 \
|
---|
35 | pre \
|
---|
36 | $(TESTSCRIPTS)
|
---|
37 |
|
---|
38 | if CONDJOBMARKET
|
---|
39 | max_jobs = 8
|
---|
40 |
|
---|
41 | check-local: atconfig atlocal $(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 AUTOTEST_PATH='$(abs_top_builddir)/src' $(TESTSUITEFLAGS)
|
---|
50 |
|
---|
51 | installcheck-local: atconfig atlocal $(TESTSUITE)
|
---|
52 | nrjobs=; \
|
---|
53 | for flag in $$MAKEFLAGS; do \
|
---|
54 | case $$flag in \
|
---|
55 | --* | =*=) ;; \
|
---|
56 | *j*) nrjobs="-j$(max_jobs)" ;; \
|
---|
57 | esac; \
|
---|
58 | done; \
|
---|
59 | $(SHELL) '$(TESTSUITE)' $$nrjobs AUTOTEST_PATH='$(bindir)' $(TESTSUITEFLAGS)
|
---|
60 |
|
---|
61 | clean-local:
|
---|
62 | test ! -f '$(TESTSUITE)' || \
|
---|
63 | $(SHELL) '$(TESTSUITE)' --clean
|
---|
64 |
|
---|
65 | AUTOTEST = $(AUTOM4TE) --language=autotest
|
---|
66 | $(TESTSUITE): $(srcdir)/testsuite.at package.m4 $(TESTSCRIPTS)
|
---|
67 | $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
|
---|
68 | mv $@.tmp $@
|
---|
69 | endif
|
---|
70 |
|
---|
71 | # The `:;' works around a Bash 3.2 bug when the output is not writeable.
|
---|
72 | package.m4: $(top_srcdir)/configure.ac
|
---|
73 | :;{ \
|
---|
74 | echo '# Signature of the current package.' && \
|
---|
75 | echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])' && \
|
---|
76 | echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])' && \
|
---|
77 | echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])' && \
|
---|
78 | echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])' && \
|
---|
79 | echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
|
---|
80 | } >'package.m4'
|
---|