From 488d56525c7e1146bf77b7693447399fef33f5e7 Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Sat, 11 Aug 2012 12:21:41 +0200 Subject: [PATCH] [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 --- lib/am/distdir.am | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 -- 2.47.2