annotate level1/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
2047
ed46fc161cc3 All for the mix
boisy
parents:
diff changeset
1 include $(NITROS9DIR)/rules.mak
ed46fc161cc3 All for the mix
boisy
parents:
diff changeset
2
2822
4ffb283f6233 Forgot to add to makefile
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2701
diff changeset
3 dirs = coco1 deluxe coco2 coco2b tano d64 dalpha atari
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
2047
ed46fc161cc3 All for the mix
boisy
parents:
diff changeset
7
ed46fc161cc3 All for the mix
boisy
parents:
diff changeset
8 # Make all components
ed46fc161cc3 All for the mix
boisy
parents:
diff changeset
9 all:
ed46fc161cc3 All for the mix
boisy
parents:
diff changeset
10 @$(ECHO) "**************************************************"
ed46fc161cc3 All for the mix
boisy
parents:
diff changeset
11 @$(ECHO) "* *"
ed46fc161cc3 All for the mix
boisy
parents:
diff changeset
12 @$(ECHO) "* NitrOS-9 Level 1 Ports *"
ed46fc161cc3 All for the mix
boisy
parents:
diff changeset
13 @$(ECHO) "* *"
ed46fc161cc3 All for the mix
boisy
parents:
diff changeset
14 @$(ECHO) "**************************************************"
ed46fc161cc3 All for the mix
boisy
parents:
diff changeset
15 $(foreach dir, $(dirs), ($(CD) $(dir); make);)
ed46fc161cc3 All for the mix
boisy
parents:
diff changeset
16
ed46fc161cc3 All for the mix
boisy
parents:
diff changeset
17 # Clean all components
2224
22b75f9788a5 Removed redundant targets
boisy
parents: 2216
diff changeset
18 clean:
2047
ed46fc161cc3 All for the mix
boisy
parents:
diff changeset
19 $(foreach dir, $(dirs), ($(CD) $(dir); make clean);)
ed46fc161cc3 All for the mix
boisy
parents:
diff changeset
20
ed46fc161cc3 All for the mix
boisy
parents:
diff changeset
21 # Make DSK images
ed46fc161cc3 All for the mix
boisy
parents:
diff changeset
22 dsk:
ed46fc161cc3 All for the mix
boisy
parents:
diff changeset
23 $(foreach dir, $(dirs), ($(CD) $(dir); make dsk);)
ed46fc161cc3 All for the mix
boisy
parents:
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
2047
ed46fc161cc3 All for the mix
boisy
parents:
diff changeset
29 # Clean DSK images
ed46fc161cc3 All for the mix
boisy
parents:
diff changeset
30 dskclean:
ed46fc161cc3 All for the mix
boisy
parents:
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: 2822
diff changeset
35 @$(foreach dir, $(dirs), $(MAKE) -C $(dir) info; $(ECHO);)
2216
d096a278e068 Added info targets
boisy
parents: 2199
diff changeset
36