From b80cd1de959455fbe56b7f504e7cf0ed3953941a Mon Sep 17 00:00:00 2001 From: John Kohl Date: Thu, 24 May 1990 10:36:24 +0000 Subject: [PATCH] fixed up version of 1.4.1.1 to properly descend & not waste processes git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@936 dc483132-0cff-0310-8789-dd5450dbe970 --- src/config/Imake.rules | 44 +++++++++++++++++++++++++----------------- 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/src/config/Imake.rules b/src/config/Imake.rules index a3973e90a..292117d7c 100644 --- a/src/config/Imake.rules +++ b/src/config/Imake.rules @@ -1255,40 +1255,48 @@ target:: @@\ #ifndef MakeNsubdirMakefiles #define MakeNsubdirMakefiles() @@\ subdirMakefiles: @@\ - $(RM) $(MAKEFILE_SUBDIR)/Makefile.bak @@\ + cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(UPPREFIX)$(TOP) -DCURDIR=$(NEW_CURRENT_DIR) -s Makefile.new; \ @@\ + $(MAKE) -f Makefile.new noop @@\ -@if [ -f $(MAKEFILE_SUBDIR)/Makefile ]; then \ @@\ - echo " $(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak"; \ @@\ + echo " $(RM) $(MAKEFILE_SUBDIR)/Makefile.bak; $(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak; $(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak"; \ @@\ + $(RM) $(MAKEFILE_SUBDIR)/Makefile.bak; \ @@\ $(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak; \ @@\ + $(MV) $(MAKEFILE_SUBDIR)/Makefile.new $(MAKEFILE_SUBDIR)/Makefile; \ @@\ + cd $(MAKEFILE_SUBDIR); $(MAKE) $(MFLAGS) Makefiles; \ @@\ else exit 0; fi @@\ - cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(UPPREFIX)$(TOP) -DCURDIR=$(NEW_CURRENT_DIR); \ @@\ - $(MAKE) $(MFLAGS) Makefiles @@\ @@\ subsubdirMakefiles: @@\ - $(RM) $(MAKEFILE_SUBDIR)/Makefile.bak @@\ + cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(UPPREFIX)$(TOP) -DCURDIR=$(NEW_CURRENT_DIR) -s Makefile.new; \ @@\ + $(MAKE) -f Makefile.new noop @@\ -@if [ -f $(MAKEFILE_SUBDIR)/Makefile ]; then \ @@\ - echo " $(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak"; \ @@\ + echo " $(RM) $(MAKEFILE_SUBDIR)/Makefile.bak; $(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak; $(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak"; \ @@\ + $(RM) $(MAKEFILE_SUBDIR)/Makefile.bak; \ @@\ $(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak; \ @@\ + $(MV) $(MAKEFILE_SUBDIR)/Makefile.new $(MAKEFILE_SUBDIR)/Makefile; \ @@\ + cd $(MAKEFILE_SUBDIR); $(MAKE) $(MFLAGS) Makefiles; \ @@\ else exit 0; fi @@\ - cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(UPPREFIX)$(UPPREFIX)$(TOP) -DCURDIR=$(NEW_CURRENT_DIR); \ @@\ - $(MAKE) $(MFLAGS) Makefiles @@\ @@\ subsubsubdirMakefiles: @@\ - $(RM) $(MAKEFILE_SUBDIR)/Makefile.bak @@\ + cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(UPPREFIX)$(TOP) -DCURDIR=$(NEW_CURRENT_DIR) -s Makefile.new; \ @@\ + $(MAKE) -f Makefile.new noop @@\ -@if [ -f $(MAKEFILE_SUBDIR)/Makefile ]; then \ @@\ - echo " $(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak"; \ @@\ + echo " $(RM) $(MAKEFILE_SUBDIR)/Makefile.bak; $(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak; $(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak"; \ @@\ + $(RM) $(MAKEFILE_SUBDIR)/Makefile.bak; \ @@\ $(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak; \ @@\ - else exit 0; fi @@\ - cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(UPPREFIX)$(UPPREFIX)$(UPPREFIX)$(TOP) -DCURDIR=$(NEW_CURRENT_DIR); \ @@\ - $(MAKE) $(MFLAGS) Makefiles @@\ + $(MV) $(MAKEFILE_SUBDIR)/Makefile.new $(MAKEFILE_SUBDIR)/Makefile; \ @@\ + cd $(MAKEFILE_SUBDIR); $(MAKE) $(MFLAGS) Makefiles; \ @@\ + else exit 0; fi @@\ @@\ subsubsubsubdirMakefiles: @@\ - $(RM) $(MAKEFILE_SUBDIR)/Makefile.bak @@\ + cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(UPPREFIX)$(TOP) -DCURDIR=$(NEW_CURRENT_DIR) -s Makefile.new; \ @@\ + $(MAKE) -f Makefile.new noop @@\ -@if [ -f $(MAKEFILE_SUBDIR)/Makefile ]; then \ @@\ - echo " $(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak"; \ @@\ + echo " $(RM) $(MAKEFILE_SUBDIR)/Makefile.bak; $(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak; $(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak"; \ @@\ + $(RM) $(MAKEFILE_SUBDIR)/Makefile.bak; \ @@\ $(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak; \ @@\ - else exit 0; fi @@\ - cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(UPPREFIX)$(UPPREFIX)$(UPPREFIX)$(UPPREFIX)$(TOP) -DCURDIR=$(NEW_CURRENT_DIR); \ @@\ - $(MAKE) $(MFLAGS) Makefiles + $(MV) $(MAKEFILE_SUBDIR)/Makefile.new $(MAKEFILE_SUBDIR)/Makefile; \ @@\ + cd $(MAKEFILE_SUBDIR); $(MAKE) $(MFLAGS) Makefiles; \ @@\ + else exit 0; fi #endif /* MakeNsubdirMakefiles */ -- 2.26.2