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 | TESTSCRIPTS += \
|
---|
12 | $(srcdir)/testsuite-examples.at \
|
---|
13 | $(srcdir)/ManyWaysTranslateAtom/testsuite-examples-many-ways-translate-atom.at \
|
---|
14 | $(srcdir)/PartialChargeFitting/testsuite-examples-partialchargefitting-h2o.at \
|
---|
15 | $(srcdir)/Simple/testsuite-examples-simple-h2o.at
|
---|
16 |
|
---|
17 | EXTRA_DIST = \
|
---|
18 | testsuite.at \
|
---|
19 | $(TESTSUITE) \
|
---|
20 | atlocal.in \
|
---|
21 | molecuilder.in \
|
---|
22 | package.m4 \
|
---|
23 | Simple \
|
---|
24 | $(TESTSCRIPTS)
|
---|
25 |
|
---|
26 | max_jobs = 8
|
---|
27 |
|
---|
28 | examples: atconfig atlocal $(TESTSUITE)
|
---|
29 | nrjobs=; \
|
---|
30 | for flag in $$MAKEFLAGS; do \
|
---|
31 | case $$flag in \
|
---|
32 | --* | =*=) ;; \
|
---|
33 | *j*) nrjobs="-j$(max_jobs)" ;; \
|
---|
34 | esac; \
|
---|
35 | done; \
|
---|
36 | $(SHELL) '$(TESTSUITE)' $$nrjobs AUTOTEST_PATH='$(abs_top_builddir)/src' $(TESTSUITEFLAGS)
|
---|
37 |
|
---|
38 | clean-local:
|
---|
39 | test ! -f '$(TESTSUITE)' || \
|
---|
40 | $(SHELL) '$(TESTSUITE)' --clean
|
---|
41 |
|
---|
42 | AUTOTEST = $(AUTOM4TE) --language=autotest
|
---|
43 | $(TESTSUITE): $(srcdir)/testsuite.at package.m4 $(TESTSCRIPTS)
|
---|
44 | $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
|
---|
45 | mv $@.tmp $@
|
---|
46 |
|
---|
47 | # The `:;' works around a Bash 3.2 bug when the output is not writeable.
|
---|
48 | package.m4: $(top_srcdir)/configure.ac
|
---|
49 | :;{ \
|
---|
50 | echo '# Signature of the current package.' && \
|
---|
51 | echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])' && \
|
---|
52 | echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])' && \
|
---|
53 | echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])' && \
|
---|
54 | echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])' && \
|
---|
55 | echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
|
---|
56 | } >'package.m4'
|
---|