1 | AUTOM4TE = autom4te
|
---|
2 | EXTRA_DIST = \
|
---|
3 | atlocal.in \
|
---|
4 | package.m4 \
|
---|
5 | testsuite.at \
|
---|
6 | testsuite-config_h.at \
|
---|
7 | testsuite-date_in_dox.at \
|
---|
8 | testsuite-globallistofactions_hpp.at \
|
---|
9 | testsuite-memdebug.at \
|
---|
10 | testsuite-project-disclaimer.at \
|
---|
11 | $(TESTSUITE)
|
---|
12 | TESTSUITE = $(srcdir)/testsuite
|
---|
13 |
|
---|
14 | DISTCLEANFILES = atconfig
|
---|
15 |
|
---|
16 | TESTSCRIPTS = \
|
---|
17 | testsuite-config_h.at \
|
---|
18 | testsuite-date_in_dox.at \
|
---|
19 | testsuite-globallistofactions_hpp.at \
|
---|
20 | testsuite-memdebug.at \
|
---|
21 | testsuite-project-disclaimer.at
|
---|
22 |
|
---|
23 | max_jobs = 4
|
---|
24 |
|
---|
25 | check-local: atlocal package.m4 $(TESTSUITE)
|
---|
26 | nrjobs=; \
|
---|
27 | for flag in $$MAKEFLAGS; do \
|
---|
28 | case $$flag in \
|
---|
29 | --* | =*=) ;; \
|
---|
30 | *j*) nrjobs="-j$(max_jobs)" ;; \
|
---|
31 | esac; \
|
---|
32 | done; \
|
---|
33 | $(SHELL) '$(TESTSUITE)' $$nrjobs AUTOTEST_PATH='$(abs_top_builddir)/src' $(TESTSUITEFLAGS)
|
---|
34 |
|
---|
35 | installcheck-local: atconfig atlocal $(TESTSUITE)
|
---|
36 | nrjobs=; \
|
---|
37 | for flag in $$MAKEFLAGS; do \
|
---|
38 | case $$flag in \
|
---|
39 | --* | =*=) ;; \
|
---|
40 | *j*) nrjobs="-j$(max_jobs)" ;; \
|
---|
41 | esac; \
|
---|
42 | done; \
|
---|
43 | $(SHELL) '$(TESTSUITE)' $$nrjobs AUTOTEST_PATH='$(bindir)' $(TESTSUITEFLAGS)
|
---|
44 |
|
---|
45 | clean-local:
|
---|
46 | test ! -f '$(TESTSUITE)' || \
|
---|
47 | $(SHELL) '$(TESTSUITE)' --clean
|
---|
48 |
|
---|
49 | AUTOTEST = $(AUTOM4TE) --language=autotest
|
---|
50 | $(TESTSUITE): $(srcdir)/testsuite.at package.m4 $(TESTSCRIPTS)
|
---|
51 | $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
|
---|
52 | mv $@.tmp $@
|
---|
53 |
|
---|
54 | # The `:;' works around a Bash 3.2 bug when the output is not writeable.
|
---|
55 | package.m4: $(top_srcdir)/configure.ac
|
---|
56 | :;{ \
|
---|
57 | echo '# Signature of the current package.' && \
|
---|
58 | echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])' && \
|
---|
59 | echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])' && \
|
---|
60 | echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])' && \
|
---|
61 | echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])' && \
|
---|
62 | echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
|
---|
63 | } >'$(srcdir)/package.m4'
|
---|