forked from Z80-Retro/2063-Z80-cpm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
51 lines (41 loc) · 773 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
SUBDIRS=\
boot \
tests \
hello \
retro \
filesystem
CLEAN_DIRS=$(SUBDIRS:%=clean-%)
ALL_DIRS=$(SUBDIRS:%=all-%)
.PHONY: all clean release $(CLEAN_DIRS) $(ALL_DIRS)
all:: $(ALL_DIRS)
clean:: $(CLEAN_DIRS)
world:: clean all
$(ALL_DIRS):
$(MAKE) -C $(@:all-%=%) all
$(CLEAN_DIRS):
$(MAKE) -C $(@:clean-%=%) clean
REL_FILES=\
LICENSE \
Makefile \
README-SD.md \
README.md \
boot \
cpm22 \
doc \
hello \
lib \
retro \
tests \
filesystem/Makefile \
filesystem/README.md \
filesystem/diskdefs \
filesystem/retro.img \
filesystem/sid \
filesystem/progs/basic/ \
filesystem/progs/example \
filesystem/progs/tms9118 \
filesystem/progs/tty \
filesystem/progs/README.md
release:
rm -f 2063-Z80-cpm.zip
zip -r 2063-Z80-cpm.zip $(REL_FILES)