recheck: behave better with non-GNU make
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 13 Jan 2012 17:53:43 +0000 (18:53 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 16 Jan 2012 09:22:18 +0000 (10:22 +0100)
commitd9a7182ed15654aebdd049857282106e84962813
treeca999d1dde2d0bc8f0b3748a40ddc9c973470abf
parent20f2ac90d14d04caef07c6e445e7b3e582374701
recheck: behave better with non-GNU make

* automake.in (handle_tests): Also substitute '%CHECK_DEPS%' with
the value of the '@check' array, containing the list of early
test dependencies like '$(check_SCRIPTS)', $(check_PROGRAMS)',
etc.
* lib/am/check.am (recheck): Explicitly depend on '%CHECK_DEPS%'.
(check, recheck): Unify the implementation of their recipes, with
different code paths taken depending on the name of the target.
This makes the implementation of "recheck" less brittle in the
process (especially when non-GNU make and AM_MAKEFLAGS overriding
are involved).
* lib/am/check-html.am (check-html, recheck-html): Likewise.
* tests/check.test: Adjust to avoid spurious failure.
* tests/parallel-tests2.test: Improve coverage.
automake.in
lib/am/check-html.am
lib/am/check.am
tests/check.test
tests/parallel-tests2.test