]> git.ipfire.org Git - thirdparty/automake.git/commit
test harness: "make -n check" works correctly with Solaris make
authorStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 8 Aug 2011 10:50:12 +0000 (12:50 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 8 Aug 2011 11:21:26 +0000 (13:21 +0200)
commitbf15d302c88c7da373b3ad7a4d3cea92620baca8
tree70a0565c964ff97994de6fbbb2181339a459fa61
parentb9dfd77aa5be5a91bfc82ce398d27e8266733554
test harness: "make -n check" works correctly with Solaris make

To avoid some recipes being executed with "make -n", we used the
trick of issuing recursive make calls not directly with $(MAKE),
but with a simple indirection instead:
  ...
  am__stealth_MAKE = $(MAKE)
  ...
  target:
      ... $(am__stealth_MAKE) ...
  ...
This hack worked with GNU make, but, unfortunately, not with
Solaris make.  The present change removes the hack, and uses more
proper idioms to avoid unwanted recipe executions with "make -n".

Bug exposed by test case `parallel-tests-dry-run.test'.

* lib/am/check.am (am__stealth_MAKE): Remove, no more used.
(.log.trs): Break recipe in multiple shell invocations.
($(TEST_SUITE_LOG)): Likewise, and move some corner-case parts of
the recipe to ...
(am--redo-logs): ... this new internal helper .PHONY target.
ChangeLog
lib/Automake/tests/Makefile.in
lib/am/check.am
tests/Makefile.in