aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/DualRole/ClassDriver/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Demos/DualRole/ClassDriver/makefile')
-rw-r--r--Demos/DualRole/ClassDriver/makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Demos/DualRole/ClassDriver/makefile b/Demos/DualRole/ClassDriver/makefile
index 06552493e..ecc49ec89 100644
--- a/Demos/DualRole/ClassDriver/makefile
+++ b/Demos/DualRole/ClassDriver/makefile
@@ -15,10 +15,16 @@
PROJECT_DIRECTORIES = $(shell ls -d *)
+# This makefile is potentially infinitely recursive if something really bad
+# happens when determining the set of project directories - hard-abort if
+# more than 10 levels deep to avoid angry emails.
+ifeq ($(MAKELEVEL), 10)
+ $(error EMERGENCY ABORT: INFINITE RECURSION DETECTED)
+endif
+
all:
@$(foreach PROJECT, $(PROJECT_DIRECTORIES), $(MAKE) -s -C $(PROJECT) clean all;)
%:
@$(foreach PROJECT, $(PROJECT_DIRECTORIES), $(MAKE) -s -C $(PROJECT) $@;)
-