Mercurial > hg > Members > kono > nitros9-code
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 |
rev | line source |
---|---|
2047 | 1 include $(NITROS9DIR)/rules.mak |
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 | 7 |
8 # Make all components | |
9 all: | |
10 @$(ECHO) "**************************************************" | |
11 @$(ECHO) "* *" | |
12 @$(ECHO) "* NitrOS-9 Level 1 Ports *" | |
13 @$(ECHO) "* *" | |
14 @$(ECHO) "**************************************************" | |
15 $(foreach dir, $(dirs), ($(CD) $(dir); make);) | |
16 | |
17 # Clean all components | |
2224 | 18 clean: |
2047 | 19 $(foreach dir, $(dirs), ($(CD) $(dir); make clean);) |
20 | |
21 # Make DSK images | |
22 dsk: | |
23 $(foreach dir, $(dirs), ($(CD) $(dir); make dsk);) | |
24 | |
2199 | 25 # Copy DSK images |
26 dskcopy: | |
27 $(foreach dir, $(dirs), ($(CD) $(dir); make dskcopy);) | |
28 | |
2047 | 29 # Clean DSK images |
30 dskclean: | |
31 $(foreach dir, $(dirs), ($(CD) $(dir); make dskclean);) | |
2216 | 32 |
33 # Info | |
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 | 36 |