]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
[ng] subdirs: prefer "make -C dir" over "cd dir && make"
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 8 Jun 2012 19:37:40 +0000 (21:37 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 15 Jun 2012 14:01:23 +0000 (16:01 +0200)
* lib/am/subdirs.am ($(RECURSIVE_TARGETS), $(RECURSIVE_CLEAN_TARGETS)):
Prefer "$(MAKE) -C $$dir ..." over "($(am__cd) $$dir && $(MAKE) ...".
This allows us to remove a subshell invocation.

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

index 9ee49cef2cd51514ea3e4366256d951a6495fff9..5dfe8ca84d8f0f8775fca7b9ec4f07c7a9010e5a 100644 (file)
@@ -58,8 +58,7 @@ $(RECURSIVE_TARGETS) $(RECURSIVE_CLEAN_TARGETS):
          else \
            local_target="$$target"; \
          fi; \
-         ($(am__cd) $$subdir && $(MAKE) $$local_target) \
-         || eval $$failcom; \
+         $(MAKE) -C "$$subdir" $$local_target || eval $$failcom; \
        done; \
        if test "$$dot_seen" = "no"; then \
          $(MAKE) "$$target-am" || exit 1; \