Mercurial > hg > Members > kono > nitros9-code
annotate 3rdparty/packages/os9l2bbs/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 | 28ed72477814 |
children |
rev | line source |
---|---|
2401 | 1 include $(NITROS9DIR)/rules.mak |
2 | |
2402 | 3 dirs = 6809l2 |
4 | |
5 # Make all components | |
6 all: | |
7 @$(ECHO) "**************************************************" | |
8 @$(ECHO) "* *" | |
9 @$(ECHO) "* OS-9 LEVEL 2 BBS *" | |
10 @$(ECHO) "* *" | |
11 @$(ECHO) "**************************************************" | |
2913
1c1600cc9f02
makefiles: Stop if a component fails to build
Tormod Volden <debian.tormod@gmail.com>
parents:
2898
diff
changeset
|
12 $(foreach dir,$(dirs),$(MAKE) -C $(dir) &&) : |
2401 | 13 |
2402 | 14 # Clean all components |
15 clean: | |
16 $(foreach dir, $(dirs), ($(CD) $(dir); make clean);) | |
17 | |
18 # Make DSK images | |
19 dsk: all | |
20 $(foreach dir, $(dirs), ($(CD) $(dir); make dsk);) | |
2401 | 21 |
2402 | 22 # Copy DSK images |
23 dskcopy: all | |
24 $(foreach dir, $(dirs), ($(CD) $(dir); make dskcopy);) | |
2401 | 25 |
2402 | 26 # Clean DSK images |
27 dskclean: | |
28 $(foreach dir, $(dirs), ($(CD) $(dir); make dskclean);) | |
29 | |
2612
e55663e7aa7b
Fixed makfiles to include disk info
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2402
diff
changeset
|
30 info: |
2861
bd286ab169c7
Makefiles: Make make info prettier for dsks/ReadMe
Tormod Volden <debian.tormod@gmail.com>
parents:
2612
diff
changeset
|
31 @$(foreach dir, $(dirs), $(MAKE) -C $(dir) info;) |
2612
e55663e7aa7b
Fixed makfiles to include disk info
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2402
diff
changeset
|
32 |