[8ce1a9] | 1 | AUTOM4TE = $(SHELL) $(top_srcdir)/build-aux/missing --run autom4te
|
---|
| 2 |
|
---|
| 3 | TESTSUITE = $(srcdir)/testsuite
|
---|
| 4 |
|
---|
| 5 | EXTRA_DIST = \
|
---|
| 6 | testsuite.at \
|
---|
| 7 | $(TESTSUITE) \
|
---|
| 8 | $(TESTSCRIPTS) \
|
---|
| 9 | atlocal.in \
|
---|
| 10 | lmdemo.in \
|
---|
| 11 | package.m4
|
---|
| 12 |
|
---|
| 13 | DISTCLEANFILES = atconfig
|
---|
| 14 |
|
---|
| 15 | TESTSCRIPTS =
|
---|
| 16 |
|
---|
| 17 | # PLEASE adhere to alphabetical ordering of TESTSCRIPTS
|
---|
| 18 |
|
---|
| 19 | TESTSCRIPTS += \
|
---|
| 20 | $(srcdir)/testsuite-lmdemo.at
|
---|
| 21 |
|
---|
| 22 |
|
---|
| 23 | max_jobs = 4
|
---|
| 24 |
|
---|
| 25 | check-local: atconfig atlocal $(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 lmdemo $(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 must not depend on atlocal or atconfig as otherwise distcheck does
|
---|
| 51 | # not work (wants to regenerate testsuite from testsuite.at in srcdir, which is
|
---|
| 52 | # read-only)
|
---|
| 53 | $(TESTSUITE): $(srcdir)/testsuite.at package.m4 $(TESTSCRIPTS)
|
---|
| 54 | $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
|
---|
| 55 | mv $@.tmp $@
|
---|
| 56 |
|
---|
| 57 | # The `:;' works around a Bash 3.2 bug when the output is not writeable.
|
---|
| 58 | package.m4: $(top_srcdir)/configure.ac
|
---|
| 59 | :;{ \
|
---|
| 60 | echo '# Signature of the current package.' && \
|
---|
| 61 | echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])' && \
|
---|
| 62 | echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])' && \
|
---|
| 63 | echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])' && \
|
---|
| 64 | echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])' && \
|
---|
| 65 | echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
|
---|
| 66 | } >'package.m4'
|
---|