diff 3rdparty/drivers/makefile @ 2913:1c1600cc9f02

makefiles: Stop if a component fails to build The unconditional looping of subdirectories in the makefiles would just carry on even if one of them failed. To avoid that build errors go unnoticed, the build should stop on any error. For this, commands should be chained with "&&" and not ";" in makefile recipes.
author Tormod Volden <debian.tormod@gmail.com>
date Sun, 12 Jan 2014 01:32:45 +0100
parents 1addfd8c9d5f
children 9edca3e61b66
line wrap: on
line diff
--- a/3rdparty/drivers/makefile	Sun Jan 12 00:45:16 2014 +0100
+++ b/3rdparty/drivers/makefile	Sun Jan 12 01:32:45 2014 +0100
@@ -9,7 +9,7 @@
 	@$(ECHO) "*             3rd Party Device Drivers           *"
 	@$(ECHO) "*                                                *"
 	@$(ECHO) "**************************************************"
-	$(foreach dir, $(dirs), ($(CD) $(dir); make);)
+	$(foreach dir,$(dirs),$(MAKE) -C $(dir) &&) :
 
 # Clean all components
 clean: