annotate level2/makefile @ 2912:14b4f2791bb3

Allow selection of ports to build using PORTS variable When building from the top level directory, a subset of ports can be specified, some examples: make PORTS=atari make PORTS="d64 tano dalpha" make dsk PORTS=coco3_6309 Note that ports from level2 (coco3 or coco3_6309) can not be specified together with ports from level1.
author Tormod Volden <debian.tormod@gmail.com>
date Sun, 12 Jan 2014 00:45:16 +0100
parents 28ed72477814
children 1c1600cc9f02
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2046
cac62639358c new makefile
boisy
parents: 2045
diff changeset
1 include $(NITROS9DIR)/rules.mak
455
boisy
parents: 355
diff changeset
2
2059
46aa4db8204e More changes
boisy
parents: 2052
diff changeset
3 dirs = coco3 coco3_6309
2912
14b4f2791bb3 Allow selection of ports to build using PORTS variable
Tormod Volden <debian.tormod@gmail.com>
parents: 2898
diff changeset
4 ifdef PORTS
14b4f2791bb3 Allow selection of ports to build using PORTS variable
Tormod Volden <debian.tormod@gmail.com>
parents: 2898
diff changeset
5 dirs = $(PORTS)
14b4f2791bb3 Allow selection of ports to build using PORTS variable
Tormod Volden <debian.tormod@gmail.com>
parents: 2898
diff changeset
6 endif
341
20944721d3e6 Major makefile mods
boisy
parents: 337
diff changeset
7
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
8 # Make all components
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
9 all:
1363
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1317
diff changeset
10 @$(ECHO) "**************************************************"
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1317
diff changeset
11 @$(ECHO) "* *"
2046
cac62639358c new makefile
boisy
parents: 2045
diff changeset
12 @$(ECHO) "* NitrOS-9 Level 2 Ports *"
1363
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1317
diff changeset
13 @$(ECHO) "* *"
53c50c807d55 Major move to new NitrOS-9 project
boisy
parents: 1317
diff changeset
14 @$(ECHO) "**************************************************"
2046
cac62639358c new makefile
boisy
parents: 2045
diff changeset
15 $(foreach dir, $(dirs), ($(CD) $(dir); make);)
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
16
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
17 # Clean all components
2224
22b75f9788a5 Removed redundant targets
boisy
parents: 2216
diff changeset
18 clean:
2046
cac62639358c new makefile
boisy
parents: 2045
diff changeset
19 $(foreach dir, $(dirs), ($(CD) $(dir); make clean);)
1705
bd792517eea1 Updated makefiles for 50Hz distributions
boisy
parents: 1696
diff changeset
20
2046
cac62639358c new makefile
boisy
parents: 2045
diff changeset
21 # Make DSK images
cac62639358c new makefile
boisy
parents: 2045
diff changeset
22 dsk:
cac62639358c new makefile
boisy
parents: 2045
diff changeset
23 $(foreach dir, $(dirs), ($(CD) $(dir); make dsk);)
1126
85eed1cde1b7 attr used throughout the makefiles now
boisy
parents: 1122
diff changeset
24
2199
eab970e382e2 Prep for nightly builds
boisy
parents: 2059
diff changeset
25 # Copy DSK images
eab970e382e2 Prep for nightly builds
boisy
parents: 2059
diff changeset
26 dskcopy:
eab970e382e2 Prep for nightly builds
boisy
parents: 2059
diff changeset
27 $(foreach dir, $(dirs), ($(CD) $(dir); make dskcopy);)
eab970e382e2 Prep for nightly builds
boisy
parents: 2059
diff changeset
28
2046
cac62639358c new makefile
boisy
parents: 2045
diff changeset
29 # Clean DSK images
cac62639358c new makefile
boisy
parents: 2045
diff changeset
30 dskclean:
cac62639358c new makefile
boisy
parents: 2045
diff changeset
31 $(foreach dir, $(dirs), ($(CD) $(dir); make dskclean);)
2216
d096a278e068 Added info targets
boisy
parents: 2199
diff changeset
32
d096a278e068 Added info targets
boisy
parents: 2199
diff changeset
33 # Info
d096a278e068 Added info targets
boisy
parents: 2199
diff changeset
34 info:
2861
bd286ab169c7 Makefiles: Make make info prettier for dsks/ReadMe
Tormod Volden <debian.tormod@gmail.com>
parents: 2224
diff changeset
35 @$(foreach dir, $(dirs), $(MAKE) -C $(dir) info; $(ECHO);)