From: Stefano Lattarini Date: Sat, 11 Aug 2012 10:21:41 +0000 (+0200) Subject: [ng] dist: avoid few extra forks when descending in $(SUBDIRS) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=488d56525c7e1146bf77b7693447399fef33f5e7;p=thirdparty%2Fautomake.git [ng] dist: avoid few extra forks when descending in $(SUBDIRS) * lib/am/distdir.am (distdir) [%?SUBDIRS%]: Here, by using "make -C subdir distdir" rather than "(cd subdir && make distdir)". Signed-off-by: Stefano Lattarini --- diff --git a/lib/am/distdir.am b/lib/am/distdir.am index dd80e1038..ceb819c8e 100644 --- a/lib/am/distdir.am +++ b/lib/am/distdir.am @@ -226,9 +226,8 @@ if %?SUBDIRS% dir1=$$subdir; dir2="$(top_distdir)"; \ $(am.dist.relativize-path); \ new_top_distdir=$$reldir; \ - echo " (cd $$subdir && $(MAKE) top_distdir="$$new_top_distdir" distdir="$$new_distdir" distdir)"; \ - (cd $$subdir && \ - $(MAKE) \ + echo " $(MAKE) -C $$subdir distdir top_distdir=$$new_top_distdir distdir=$$new_distdir"; \ + $(MAKE) -C $$subdir distdir \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ ## Disable am.dist.remove-distdir so that sub-packages do not clear a @@ -239,7 +238,6 @@ if %?SUBDIRS% am__skip_length_check=: \ ## No need to fix modes more than once: am__skip_mode_fix=: \ - distdir) \ || exit 1; \ fi; \ done