annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2890
1addfd8c9d5f Revert e4a0f58a5f9b (set NITROS9DIR in makefiles)
Tormod Volden <debian.tormod@gmail.com>
parents: 2758
diff changeset
1 include ../../rules.mak
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
2
2624
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2428
diff changeset
3 dirs = burke disto emudsk ide mmc s16550 sdisk sdisk3 tccc
1119
f86ef3d1d7c9 Makefiles have been redone to take advantage of size and Make features
boisy
parents: 1031
diff changeset
4
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
5 # Make all components
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
6 all:
1366
770c350f4c15 More changes
boisy
parents: 1363
diff changeset
7 @$(ECHO) "**************************************************"
770c350f4c15 More changes
boisy
parents: 1363
diff changeset
8 @$(ECHO) "* *"
770c350f4c15 More changes
boisy
parents: 1363
diff changeset
9 @$(ECHO) "* 3rd Party Device Drivers *"
770c350f4c15 More changes
boisy
parents: 1363
diff changeset
10 @$(ECHO) "* *"
770c350f4c15 More changes
boisy
parents: 1363
diff changeset
11 @$(ECHO) "**************************************************"
2913
1c1600cc9f02 makefiles: Stop if a component fails to build
Tormod Volden <debian.tormod@gmail.com>
parents: 2890
diff changeset
12 $(foreach dir,$(dirs),$(MAKE) -C $(dir) &&) :
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
13
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
14 # Clean all components
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
15 clean:
1133
4bddc63a59fc More slight Makefile improvements
boisy
parents: 1119
diff changeset
16 $(foreach dir, $(dirs), ($(CD) $(dir); make clean);)