From 2caf4c69ddfb11eff5f92c904420ba15f6054fb8 Mon Sep 17 00:00:00 2001
From: simonm <unknown>
Date: Thu, 4 Dec 1997 12:18:41 +0000
Subject: [PATCH] [project @ 1997-12-04 12:18:41 by simonm] add lengthy comment
 about recursive makes and failure.

---
 mk/target.mk | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/mk/target.mk b/mk/target.mk
index d74d9f1463c9..02be747884c2 100644
--- a/mk/target.mk
+++ b/mk/target.mk
@@ -1004,6 +1004,18 @@ endif	# if way
 
 # No ways, so iterate over the SUBDIRS
 
+# note about recursively invoking make: we'd like make to drop all the
+# way back to the top level if it fails in any of the
+# sub(sub-...)directories.  This is done by setting the -e flag to the
+# shell during the loop, which causes an immediate failure if any of
+# the shell commands fail.
+
+# One exception: if the user gave the -i or -k flag to make in the
+# first place, we'd like to reverse this behaviour.  So we check for
+# these flags, and set the -e flag appropriately.  NOTE: watch out for
+# the --no-print-directory flag which is passed to recursive
+# invocations of make.
+
 ifeq "$(way)" ""
 ifneq "$(SUBDIRS)" ""
 
-- 
GitLab