]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
[ng] dist: remove workaround needed by BSD make only
authorStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 23 Apr 2012 18:37:47 +0000 (20:37 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 23 Apr 2012 20:59:20 +0000 (22:59 +0200)
* am/lib/configure.am (distcheck): GNU make (without the '.ONESHELL'
special target specified, which we don't support anyway) is assured
not to re-use the same shell in different commands of the same recipe,
so we can slightly simplify our rule accordingly, removing workarounds
that were only relevant fr BSD make when run in parallel mode.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
lib/am/distdir.am

index 7374eea639882ba73476433e7b2cc067817132ff..bb2d2a77a01eea597036adaff0a0f7ae2e280c3c 100644 (file)
@@ -469,9 +469,6 @@ distcheck: dist
 ## create very long directory names.
          && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
 ?DISTCHECK-HOOK?         && $(MAKE) distcheck-hook \
-## Parallel BSD make may not start a new shell for each command in a recipe,
-## so be sure to 'cd' back to the original directory after this.
-         && am__cwd=`pwd` \
          && $(am__cd) $(distdir)/_build \
          && ../configure --srcdir=.. --prefix="$$dc_install_base" \
 ?GETTEXT?          --with-included-gettext \
@@ -511,10 +508,7 @@ distcheck: dist
          && $(MAKE) dist \
 ## Make sure to remove the dists we created in the test build directory.
          && rm -rf $(DIST_ARCHIVES) \
-         && $(MAKE) distcleancheck \
-## Cater to parallel BSD make (see above).
-         && cd "$$am__cwd" \
-         || exit 1
+         && $(MAKE) distcleancheck
        $(am__post_remove_distdir)
        @(echo "$(distdir) archives ready for distribution: "; \
          list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \