[c8446c] | 1 | AUTOM4TE = $(SHELL) $(top_srcdir)/build-aux/missing --run autom4te
|
---|
| 2 |
|
---|
[004d5c] | 3 | if CONDJOBMARKET
|
---|
[e9e86f] | 4 | mpqc_SOURCES = mpqc.cpp
|
---|
[3b35e7] | 5 | mpqc_CPPFLAGS = $(AM_CPPFLAGS) ${CodePatterns_CFLAGS} $(BOOST_CPPFLAGS)
|
---|
[889d80] | 6 | mpqc_LDFLAGS = $(AM_LDFLAGS) ${CodePatterns_LDFLAGS}
|
---|
[004d5c] | 7 | mpqc_LDADD = \
|
---|
| 8 | ${CodePatterns_LIBS}
|
---|
| 9 |
|
---|
| 10 | noinst_PROGRAMS = mpqc
|
---|
| 11 | endif
|
---|
| 12 |
|
---|
| 13 | if CONDJOBMARKET
|
---|
[c8446c] | 14 | TESTSUITE = $(srcdir)/testsuite
|
---|
[004d5c] | 15 | endif
|
---|
[c8446c] | 16 |
|
---|
| 17 | DISTCLEANFILES = atconfig
|
---|
| 18 |
|
---|
[65ca73] | 19 | TESTSCRIPTS =
|
---|
| 20 |
|
---|
[24e19e] | 21 | if CONDJOBMARKET
|
---|
[65ca73] | 22 | TESTSCRIPTS += \
|
---|
[004d5c] | 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
|
---|
[65ca73] | 27 | endif
|
---|
[c8446c] | 28 |
|
---|
[65ca73] | 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
|
---|
[854a1e] | 39 | max_jobs = 8
|
---|
[c8446c] | 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; \
|
---|
[004d5c] | 49 | $(SHELL) '$(TESTSUITE)' $$nrjobs AUTOTEST_PATH='$(abs_top_builddir)/src' $(TESTSUITEFLAGS)
|
---|
[c8446c] | 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 $@
|
---|
[24e19e] | 69 | endif
|
---|
[c8446c] | 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@])'; \
|
---|
[5ffa05] | 80 | } >'package.m4'
|
---|