diff --git a/Makefile b/Makefile
index 97717f431073cf234b42eb89dc340a3596d4ff60..85c1bed41c16820240957dd25c77d5da7bac99ae 100644
--- a/Makefile
+++ b/Makefile
@@ -332,6 +332,7 @@ all ::
 	for i in $(SUBDIRS); do \
 	   if [ -d $$i ]; then \
 	      $(MAKE) -C $$i boot; \
+	      if [ $$? -eq 0 -o $$x_on_err -eq 0 ] ;  then true; else exit 1; fi; \
 	      $(MAKE) -C $$i all; \
 	      if [ $$? -eq 0 -o $$x_on_err -eq 0 ] ;  then true; else exit 1; fi; \
 	      fi; \