Mercurial > hg > Members > kono > nitros9-code
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 |
rev | line source |
---|---|
2046 | 1 include $(NITROS9DIR)/rules.mak |
455 | 2 |
2059 | 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 | 7 |
0 | 8 # Make all components |
9 all: | |
1363 | 10 @$(ECHO) "**************************************************" |
11 @$(ECHO) "* *" | |
2046 | 12 @$(ECHO) "* NitrOS-9 Level 2 Ports *" |
1363 | 13 @$(ECHO) "* *" |
14 @$(ECHO) "**************************************************" | |
2046 | 15 $(foreach dir, $(dirs), ($(CD) $(dir); make);) |
0 | 16 |
17 # Clean all components | |
2224 | 18 clean: |
2046 | 19 $(foreach dir, $(dirs), ($(CD) $(dir); make clean);) |
1705 | 20 |
2046 | 21 # Make DSK images |
22 dsk: | |
23 $(foreach dir, $(dirs), ($(CD) $(dir); make dsk);) | |
1126 | 24 |
2199 | 25 # Copy DSK images |
26 dskcopy: | |
27 $(foreach dir, $(dirs), ($(CD) $(dir); make dskcopy);) | |
28 | |
2046 | 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:
2224
diff
changeset
|
35 @$(foreach dir, $(dirs), $(MAKE) -C $(dir) info; $(ECHO);) |