Cope with parallel BSD make -jN semantics.
commit0e411a0410d6461dd85941bf1121921475426275
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 17 May 2009 10:03:47 +0000 (17 12:03 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 17 May 2009 10:16:11 +0000 (17 12:16 +0200)
treeccf89059838dcf1c4b7a2ffb6a81b01ad43e6005
parentde458bcc8b6cf5e54b76242f8f27afa330c858c7
Cope with parallel BSD make -jN semantics.

When BSD `make -jN' is used without `-B' which enables backwards
compatible semantics, it may reuse the same shell for several
commands within a rule; so ensure we do not leave it in a
different directory, nor `exit 0' early in a multi-command rule.

* lib/am/distdir.am (distcheck): After running `distcleancheck',
change back to original working directory.
* lib/am/remake-hdr.am (%CONFIG_HIN%): Run autoheader in a
subshell.
* lib/am/mans.am (uninstall-man%SECTION%): Do not `exit 0' early
in a rule that consists of several shell invocations.  Parallel
NetBSD `make -jN' without `-B' will use only one shell for all
commands, but won't respawn one after `exit 0'.  Fixes
notrans.test failure.
* tests/makej2.test: New test.
* tests/Makefile.am: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
Makefile.in
doc/Makefile.in
lib/am/distdir.am
lib/am/mans.am
lib/am/remake-hdr.am
tests/Makefile.am
tests/Makefile.in
tests/makej2.test [new file with mode: 0755]