PCmake
1.99 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#
# Makefile for released apps directory
#
PRDEPTH=..
include $(PRDEPTH)/PRdefs
#
# please add these alphabetically...
#
SUBDIRS = \
Texture \
autofill \
blockmonkey \
bumpmap \
chrome \
ci8fb \
ddspgame \
detail \
eeptest \
fault \
flash \
fogworld \
gbpak \
ginv \
gl \
ground \
gs2dex \
gtdemo \
lights \
mipmap \
morphcube \
morphfaces \
motortest \
nnsample1 \
nnsample2 \
nosPak \
onetri \
onetri-fpal \
overlay \
pfs \
playseq \
playseq.naudio \
polyline \
simple \
soundmonkey \
spgame \
sramtest \
terrain \
texlight \
threadmonkey \
tile_rect2d \
tile_rect3d \
topgun \
tron \
turbomonkey \
spritemonkey \
spritemonkeyEX \
voice
SUBDIRS_PC_ONLY = \
host_test \
hostio \
reboot
COMMONPREF = apps.released
PCDOCS = ../apps.pc/README_DEMOS.jp
# ../apps.pc/README_DEMOS_64DD.jp \
# ../apps.pc/README_DEMOS_NAUDIO.jp
LDIRT = $(PCDOCS)
default : $(PCDOCS) $(SUBDIRS)
for i in $(SUBDIRS) ; do ( \
echo === $$i === ; \
cd ../apps.released/$$i ; \
make -f PCmake ; \
) \
done
$(COMMONTARGS): $(_FORCE)
( cd ../apps.pc ;\
rm -rf $(SUBDIRS) ;\
rm -rf $(LDIRT) )
include $(COMMONRULES)
../apps.pc/README_DEMOS.jp: ../apps.released/README_DEMOS.jp
perl -ne 'if(/^#if(ndef.+PC|def.+SGI)/){$$a=1} elsif(/^#if(def.+PC|ndef.+SGI)/||/^#endif/){$$a=0}elsif(/^#else/){$$a^=1}elsif($$a==0){print}' ../apps.released/README_DEMOS.jp > ../apps.pc/README_DEMOS.jp
../apps.pc/README_DEMOS_64DD.jp: ../apps.released/README_DEMOS_64DD.jp
perl -ne 'if(/^#if(ndef.+PC|def.+SGI)/){$$a=1} elsif(/^#if(def.+PC|ndef.+SGI)/||/^#endif/){$$a=0}elsif(/^#else/){$$a^=1}elsif($$a==0){print}' ../apps.released/README_DEMOS_64DD.jp > ../apps.pc/README_DEMOS_64DD.jp
../apps.pc/README_DEMOS_NAUDIO.jp: ../apps.released/README_DEMOS_NAUDIO.jp
perl -ne 'if(/^#if(ndef.+PC|def.+SGI)/){$$a=1} elsif(/^#if(def.+PC|ndef.+SGI)/||/^#endif/){$$a=0}elsif(/^#else/){$$a^=1}elsif($$a==0){print}' ../apps.released/README_DEMOS_NAUDIO.jp > ../apps.pc/README_DEMOS_NAUDIO.jp