X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/412453414439694239c77bc4d003b4f30d092a77..a57c4eabae4e137346dd2d53e699e2b5625202ba:/Bootloaders/makefile diff --git a/Bootloaders/makefile b/Bootloaders/makefile index 94147ead0..56db65808 100644 --- a/Bootloaders/makefile +++ b/Bootloaders/makefile @@ -15,6 +15,13 @@ 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;)