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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2401
7f39211c0b14 Makefile
boisy
parents:
diff changeset
1 include $(NITROS9DIR)/rules.mak
7f39211c0b14 Makefile
boisy
parents:
diff changeset
2
2402
04755ee002ba Updated
boisy
parents: 2401
diff changeset
3 dirs = 6809l2
04755ee002ba Updated
boisy
parents: 2401
diff changeset
4
04755ee002ba Updated
boisy
parents: 2401
diff changeset
5 # Make all components
04755ee002ba Updated
boisy
parents: 2401
diff changeset
6 all:
04755ee002ba Updated
boisy
parents: 2401
diff changeset
7 @$(ECHO) "**************************************************"
04755ee002ba Updated
boisy
parents: 2401
diff changeset
8 @$(ECHO) "* *"
04755ee002ba Updated
boisy
parents: 2401
diff changeset
9 @$(ECHO) "* OS-9 LEVEL 2 BBS *"
04755ee002ba Updated
boisy
parents: 2401
diff changeset
10 @$(ECHO) "* *"
04755ee002ba Updated
boisy
parents: 2401
diff changeset
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
7f39211c0b14 Makefile
boisy
parents:
diff changeset
13
2402
04755ee002ba Updated
boisy
parents: 2401
diff changeset
14 # Clean all components
04755ee002ba Updated
boisy
parents: 2401
diff changeset
15 clean:
04755ee002ba Updated
boisy
parents: 2401
diff changeset
16 $(foreach dir, $(dirs), ($(CD) $(dir); make clean);)
04755ee002ba Updated
boisy
parents: 2401
diff changeset
17
04755ee002ba Updated
boisy
parents: 2401
diff changeset
18 # Make DSK images
04755ee002ba Updated
boisy
parents: 2401
diff changeset
19 dsk: all
04755ee002ba Updated
boisy
parents: 2401
diff changeset
20 $(foreach dir, $(dirs), ($(CD) $(dir); make dsk);)
2401
7f39211c0b14 Makefile
boisy
parents:
diff changeset
21
2402
04755ee002ba Updated
boisy
parents: 2401
diff changeset
22 # Copy DSK images
04755ee002ba Updated
boisy
parents: 2401
diff changeset
23 dskcopy: all
04755ee002ba Updated
boisy
parents: 2401
diff changeset
24 $(foreach dir, $(dirs), ($(CD) $(dir); make dskcopy);)
2401
7f39211c0b14 Makefile
boisy
parents:
diff changeset
25
2402
04755ee002ba Updated
boisy
parents: 2401
diff changeset
26 # Clean DSK images
04755ee002ba Updated
boisy
parents: 2401
diff changeset
27 dskclean:
04755ee002ba Updated
boisy
parents: 2401
diff changeset
28 $(foreach dir, $(dirs), ($(CD) $(dir); make dskclean);)
04755ee002ba Updated
boisy
parents: 2401
diff changeset
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