Mercurial > hg > Members > kono > nitros9-code
view 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 |
line wrap: on
line source
include $(NITROS9DIR)/rules.mak dirs = coco3 coco3_6309 ifdef PORTS dirs = $(PORTS) endif # Make all components all: @$(ECHO) "**************************************************" @$(ECHO) "* *" @$(ECHO) "* NitrOS-9 Level 2 Ports *" @$(ECHO) "* *" @$(ECHO) "**************************************************" $(foreach dir, $(dirs), ($(CD) $(dir); make);) # Clean all components clean: $(foreach dir, $(dirs), ($(CD) $(dir); make clean);) # Make DSK images dsk: $(foreach dir, $(dirs), ($(CD) $(dir); make dsk);) # Copy DSK images dskcopy: $(foreach dir, $(dirs), ($(CD) $(dir); make dskcopy);) # Clean DSK images dskclean: $(foreach dir, $(dirs), ($(CD) $(dir); make dskclean);) # Info info: @$(foreach dir, $(dirs), $(MAKE) -C $(dir) info; $(ECHO);)