automake-ng
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Automake-NG] [FYI] [ng] dist: avoid few extra forks when descending in


From: Stefano Lattarini
Subject: [Automake-NG] [FYI] [ng] dist: avoid few extra forks when descending in $(SUBDIRS)
Date: Sat, 11 Aug 2012 12:35:54 +0200

* lib/am/distdir.am (distdir) [%?SUBDIRS%]: Here, by using
"make -C subdir distdir" rather than "(cd subdir && make distdir)".

Signed-off-by: Stefano Lattarini <address@hidden>
---
 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 dd80e10..ceb819c 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
-- 
1.7.12.rc0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]