Add emergency aborts to the recursive makefiles to prevent system failures due to...
authorDean Camera <dean@fourwalledcubicle.com>
Mon, 4 Jun 2012 15:38:05 +0000 (15:38 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Mon, 4 Jun 2012 15:38:05 +0000 (15:38 +0000)
Bootloaders/makefile
Demos/Device/ClassDriver/makefile
Demos/Device/LowLevel/makefile
Demos/DualRole/ClassDriver/makefile
Demos/Host/ClassDriver/makefile
Demos/Host/LowLevel/makefile
Projects/makefile

index 94147ea..56db658 100644 (file)
 
 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;)
 
index cfa776a..99e7c24 100644 (file)
 
 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;)
 
index 4673bfe..639b253 100644 (file)
 
 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;)
 
index 0655249..ecc49ec 100644 (file)
 
 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) $@;)
 
-
index 5c532f1..25cfedf 100644 (file)
 
 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;)
 
index 5c532f1..25cfedf 100644 (file)
 
 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;)
 
index 50ce7ad..94deb0e 100644 (file)
 
 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;)