1 | AUTOM4TE = $(SHELL) $(top_srcdir)/build-aux/missing --run autom4te
|
---|
2 |
|
---|
3 | EXTRA_DIST = \
|
---|
4 | testsuite.at \
|
---|
5 | $(TESTSUITE) \
|
---|
6 | atlocal.in \
|
---|
7 | molecuilder.in \
|
---|
8 | $(srcdir)/package.m4 \
|
---|
9 | $(srcdir)/1_2-dimethoxyethane \
|
---|
10 | $(srcdir)/1_2-dimethylbenzene \
|
---|
11 | $(srcdir)/2-methylcyclohexanone \
|
---|
12 | $(srcdir)/benzene \
|
---|
13 | $(srcdir)/cholesterol \
|
---|
14 | $(srcdir)/cycloheptane \
|
---|
15 | $(srcdir)/dimethyl_bromomalonate \
|
---|
16 | $(srcdir)/glucose \
|
---|
17 | $(srcdir)/heptan \
|
---|
18 | $(srcdir)/isoleucine \
|
---|
19 | $(srcdir)/neohexane \
|
---|
20 | $(srcdir)/N_N-dimethylacetamide \
|
---|
21 | $(srcdir)/proline \
|
---|
22 | $(srcdir)/putrescine \
|
---|
23 | $(srcdir)/tartaric_acid
|
---|
24 |
|
---|
25 | TESTSUITE = $(srcdir)/testsuite
|
---|
26 |
|
---|
27 | DISTCLEANFILES = atconfig
|
---|
28 |
|
---|
29 | TESTSCRIPTS = \
|
---|
30 | benzene/testsuite-benzene.at \
|
---|
31 | 1_2-dimethoxyethane/testsuite-1_2-dimethoxyethane.at \
|
---|
32 | 1_2-dimethylbenzene/testsuite-1_2-dimethylbenzene.at \
|
---|
33 | 2-methylcyclohexanone/testsuite-2-methylcyclohexanone.at \
|
---|
34 | cholesterol/testsuite-cholesterol.at \
|
---|
35 | cycloheptane/testsuite-cycloheptane.at \
|
---|
36 | dimethyl_bromomalonate/testsuite-dimethyl_bromomalonate.at \
|
---|
37 | glucose/testsuite-glucose.at \
|
---|
38 | isoleucine/testsuite-isoleucine.at \
|
---|
39 | neohexane/testsuite-neohexane.at \
|
---|
40 | N_N-dimethylacetamide/testsuite-N_N-dimethylacetamide.at \
|
---|
41 | proline/testsuite-proline.at \
|
---|
42 | putrescine/testsuite-putrescine.at \
|
---|
43 | tartaric_acid/testsuite-tartaric_acid.at
|
---|
44 |
|
---|
45 | max_jobs = 4
|
---|
46 |
|
---|
47 | check-local: atconfig atlocal $(TESTSUITE)
|
---|
48 | nrjobs=; \
|
---|
49 | for flag in $$MAKEFLAGS; do \
|
---|
50 | case $$flag in \
|
---|
51 | --* | =*=) ;; \
|
---|
52 | *j*) nrjobs="-j$(max_jobs)" ;; \
|
---|
53 | esac; \
|
---|
54 | done; \
|
---|
55 | $(SHELL) '$(TESTSUITE)' $$nrjobs $(TESTSUITEFLAGS)
|
---|
56 |
|
---|
57 | installcheck-local: atconfig atlocal $(TESTSUITE)
|
---|
58 | $(SHELL) '$(TESTSUITE)' AUTOTEST_PATH='$(bindir)' \
|
---|
59 | $(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 |
|
---|
70 | # The `:;' works around a Bash 3.2 bug when the output is not writeable.
|
---|
71 | package.m4: $(top_srcdir)/configure.ac
|
---|
72 | :;{ \
|
---|
73 | echo '# Signature of the current package.' && \
|
---|
74 | echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])' && \
|
---|
75 | echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])' && \
|
---|
76 | echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])' && \
|
---|
77 | echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])' && \
|
---|
78 | echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
|
---|
79 | } >'$(srcdir)/package.m4'
|
---|