Mercurial > hg > Members > kono > nitros9-code
comparison 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 |
comparison
equal
deleted
inserted
replaced
2912:14b4f2791bb3 | 2913:1c1600cc9f02 |
---|---|
7 @$(ECHO) "**************************************************" | 7 @$(ECHO) "**************************************************" |
8 @$(ECHO) "* *" | 8 @$(ECHO) "* *" |
9 @$(ECHO) "* 3rd Party Device Drivers *" | 9 @$(ECHO) "* 3rd Party Device Drivers *" |
10 @$(ECHO) "* *" | 10 @$(ECHO) "* *" |
11 @$(ECHO) "**************************************************" | 11 @$(ECHO) "**************************************************" |
12 $(foreach dir, $(dirs), ($(CD) $(dir); make);) | 12 $(foreach dir,$(dirs),$(MAKE) -C $(dir) &&) : |
13 | 13 |
14 # Clean all components | 14 # Clean all components |
15 clean: | 15 clean: |
16 $(foreach dir, $(dirs), ($(CD) $(dir); make clean);) | 16 $(foreach dir, $(dirs), ($(CD) $(dir); make clean);) |