From 4b4f5bf32c620a7e4c47fed8135eeeb693640e29 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 6 Apr 2011 15:32:04 -0400 Subject: [PATCH] When using a sub-shell to invoke the sub-make, exec make instead of running it inside the shell to avoid an extra process. --- Makefile.in | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/Makefile.in b/Makefile.in index 1122e9c62..cdca9ac94 100644 --- a/Makefile.in +++ b/Makefile.in @@ -52,16 +52,28 @@ LIBTOOL_DEPS = @LIBTOOL_DEPS@ SHELL = @SHELL@ all: config.status - for d in $(SUBDIRS) $(SAMPLES); do (cd $$d && $(MAKE) $@) && continue; exit $$?; done + for d in $(SUBDIRS) $(SAMPLES); \ + do (cd $$d && exec $(MAKE) $@) && continue; \ + exit $$?; \ + done check pre-install: config.status - for d in $(SUBDIRS); do (cd $$d && $(MAKE) $@) && continue; exit $$?; done + for d in $(SUBDIRS); \ + do (cd $$d && exec $(MAKE) $@) && continue; \ + exit $$?; \ + done install-dirs install-binaries install-includes install-plugin uninstall: config.status pre-install - for d in $(SUBDIRS); do (cd $$d && $(MAKE) $@) && continue; exit $$?; done + for d in $(SUBDIRS); \ + do (cd $$d && exec $(MAKE) $@) && continue; \ + exit $$?; \ + done install install-doc: config.status ChangeLog pre-install - for d in $(SUBDIRS); do (cd $$d && $(MAKE) $@) && continue; exit $$?; done + for d in $(SUBDIRS); \ + do (cd $$d && exec $(MAKE) $@) && continue; \ + exit $$?; \ + done autoconf: autoconf -I m4 @@ -115,12 +127,16 @@ package: sudo.pp version=$(VERSION) $(PPVARS) clean: config.status - for d in $(SUBDIRS) $(SAMPLES); do (cd $$d && $(MAKE) $@); done + for d in $(SUBDIRS) $(SAMPLES); do \ + (cd $$d && exec $(MAKE) $@); \ + done mostlyclean: clean distclean: config.status - for d in $(SUBDIRS) $(SAMPLES); do (cd $$d && $(MAKE) $@); done + for d in $(SUBDIRS) $(SAMPLES); do \ + (cd $$d && exec $(MAKE) $@); \ + done -rm -rf Makefile pathnames.h config.h config.status config.cache \ config.log libtool stamp-* autom4te.cache -- 2.40.0