/[suikacvs]/webroot/www/manakai-charlib/Makefile
Suika

Contents of /webroot/www/manakai-charlib/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Sat Nov 8 05:03:49 2008 UTC (15 years, 11 months ago) by wakaba
Branch: MAIN
Changes since 1.4: +9 -2 lines
++ ChangeLog	8 Nov 2008 04:58:16 -0000
	* Makefile: Set the encoding name for Encode::EUCJP1997OPENNEC.

2008-11-08  Wakaba  <wakaba@suika.fam.cx>

1 wakaba 1.2 ## TO UPDATE: make all release-update distclean
2 wakaba 1.1
3     CD = cd
4 wakaba 1.5 CAT = cat
5 wakaba 1.1 MKDIR = mkdir
6     MAKE = make
7     RM = rm
8     RMALL = $(RM) -fv
9     RMDIRALL = $(RMALL) -r
10     PERL = perl
11     PERL_OPTIONS =
12 wakaba 1.2 PERL_OPTIONS_ALL = $(PERL_OPTIONS)
13 wakaba 1.1 PERL_ = $(PERL) $(PERL_OPTIONS_ALL)
14     PERLC = $(PERL) -c -w
15     PERLC_OPTIONS =
16 wakaba 1.2 PERLC_OPTIONS_ALL = $(PERLC_OPTIONS)
17 wakaba 1.1 PERL_CHK = $(PERLC) $(PERLC_OPTIONS_ALL)
18     TOUCH = touch
19     WGET = wget
20     GREP = grep
21     GREPV = $(GREP) -v
22     PERL_INPLACE = $(PERL_) -n -i
23     ECHO = echo
24     CP = cp
25 wakaba 1.2 MV = mv
26 wakaba 1.1
27     ENC2XS_PATH = /usr/local/bin/
28     ENC2XS = $(ENC2XS_PATH)enc2xs
29    
30     TBR2TBL_PL = tbr2tbl.pl
31     TBR2TBL = $(PERL_) $(TBR2TBL_PL)
32    
33     TBL2UCM_PL = tbl2ucm.pl
34     TBL2UCM = $(PERL_) $(TBL2UCM_PL)
35    
36     GL_JIS_TBR_FILES = gl-jisx0208-common.tbr gl-cjk-hiragana.tbr \
37     gl-cjk-katakana.tbr gl-cjk-greek.tbr gl-cjk-cyrillic.tbr \
38     gl-iso-646-alphanumeric.tbr gl-cjk-box-drawing.tbr
39     GENERATED_TBR_FILES = euc-jp-1997.tbr shift-jis-1997.tbr \
40     gl-jis-1978.tbr gl-jis-1983.tbr gl-jis-1997.tbr gl-jis-1997-swapped.tbr
41     TBR_FILES = $(GL_JIS_TBR_FILES) $(GENERATED_TBR_FILES) \
42     gl-iso-646-alphanumeric-fw.tbr gl-iso-646-symbol.tbr \
43     gl-jisx0212-common.tbr jisx0208_1997.tbr
44    
45     TBL_FILES = $(GENERATED_TBR_FILES:.tbr=.tbl)
46    
47     UCM_FILES = $(GENERATED_TBR_FILES:.tbr=.ucm)
48    
49     ENCODE_DIRECTORIES = \
50 wakaba 1.4 GLJIS1978 GLJIS1983 GLJIS1997 GLJIS1997Swapped EUCJP1997 ShiftJIS1997 \
51     EUCJP1997OPENNEC
52 wakaba 1.1
53     GENERATED_FILES = $(PM_FILES)
54    
55 wakaba 1.2 all: $(ENCODE_DIRECTORIES)
56 wakaba 1.1
57     $(TBR2TBL_PL):
58     $(WGET) http://suika.fam.cx/gate/cvs/*checkout*/perl/lib/Encode/Table/tool/tbr2tbl.pl
59    
60     $(TBL2UCM_PL):
61     $(WGET) http://suika.fam.cx/gate/cvs/*checkout*/perl/lib/Encode/Table/tool/tbl2ucm.pl
62    
63     jisx0208_1997.tbr $(GL_JIS_TBR_FILES) gl-iso-646-symbol.tbr \
64     gl-iso-646-alphanumeric-fw.tbr gl-jisx0212-common.tbr:
65     $(WGET) -O $@ http://suika.fam.cx/gate/cvs/*checkout*/perl/lib/Encode/Table/$@
66    
67     gl-jis-1997.tbr: jisx0208_1997.tbr $(GL_JIS_TBR_FILES) \
68     gl-iso-646-symbol.tbr $(TBR2TBL_PL)
69     $(TBR2TBL) $< > $@
70     $(PERL_INPLACE) -e 'print unless /^#(?!\?PETBL)/' $@
71     $(ECHO) '#?o name="gl-jis-1997"' >> $@
72     $(ECHO) '#?o <-ucs-substition="0x30FB"' >> $@
73     $(ECHO) '#?o ucm:mb_cur_max="2"' >> $@
74     $(ECHO) '#?o license="Public Domain"' >> $@
75    
76     gl-jis-1997-swapped.tbr: gl-jis-1997.tbr
77     $(CP) $< $@
78     $(PERL_INPLACE) -e 'print unless /^#(?!\?PETBL)/' $@
79     $(PERL_INPLACE) -e 'print unless /^0x(?:3033|724D|3229|7274|3342|695A|3349|5978|3376|635E|3443|5E75|3452|6B5D|375B|7074|395C|6268|3C49|6922|3F59|7057|4128|6C4D|445B|5464|4557|626A|456E|5B6D|4573|5E39|4676|6D6E|4768|6A24|4930|5B58|4B79|5056|4C79|692E|4F36|6446|3646|4B6A|4D5A|6076|742[1234])/' $@
80     $(ECHO) '0x3033 U+9C3A # <cjk>' >> $@
81     $(ECHO) '0x724D U+9BF5 # <cjk>' >> $@
82     $(ECHO) '0x3229 U+9DAF # <cjk>' >> $@
83     $(ECHO) '0x7274 U+9D2C # <cjk>' >> $@
84     $(ECHO) '0x3342 U+8823 # <cjk>' >> $@
85     $(ECHO) '0x695A U+86CE # <cjk>' >> $@
86     $(ECHO) '0x3349 U+652A # <cjk>' >> $@
87     $(ECHO) '0x5978 U+64B9 # <cjk>' >> $@
88     $(ECHO) '0x3376 U+7AC8 # <cjk>' >> $@
89     $(ECHO) '0x635E U+7AC3 # <cjk>' >> $@
90     $(ECHO) '0x3443 U+704C # <cjk>' >> $@
91     $(ECHO) '0x5E75 U+6F45 # <cjk>' >> $@
92     $(ECHO) '0x3452 U+8AEB # <cjk>' >> $@
93     $(ECHO) '0x6B5D U+8ACC # <cjk>' >> $@
94     $(ECHO) '0x375B U+9838 # <cjk>' >> $@
95     $(ECHO) '0x7074 U+981A # <cjk>' >> $@
96     $(ECHO) '0x395C U+7926 # <cjk>' >> $@
97     $(ECHO) '0x6268 U+783F # <cjk>' >> $@
98     $(ECHO) '0x3C49 U+8602 # <cjk>' >> $@
99     $(ECHO) '0x6922 U+854A # <cjk>' >> $@
100     $(ECHO) '0x3F59 U+9771 # <cjk>' >> $@
101     $(ECHO) '0x7057 U+976D # <cjk>' >> $@
102     $(ECHO) '0x4128 U+8CE4 # <cjk>' >> $@
103     $(ECHO) '0x6C4D U+8CCE # <cjk>' >> $@
104     $(ECHO) '0x445B U+58FA # <cjk>' >> $@
105     $(ECHO) '0x5464 U+58F7 # <cjk>' >> $@
106     $(ECHO) '0x4557 U+792A # <cjk>' >> $@
107     $(ECHO) '0x626A U+783A # <cjk>' >> $@
108     $(ECHO) '0x456E U+6AAE # <cjk>' >> $@
109     $(ECHO) '0x5B6D U+68BC # <cjk>' >> $@
110     $(ECHO) '0x4573 U+6FE4 # <cjk>' >> $@
111     $(ECHO) '0x5E39 U+6D9B # <cjk>' >> $@
112     $(ECHO) '0x4676 U+9087 # <cjk>' >> $@
113     $(ECHO) '0x6D6E U+8FE9 # <cjk>' >> $@
114     $(ECHO) '0x4768 U+8805 # <cjk>' >> $@
115     $(ECHO) '0x6A24 U+877F # <cjk>' >> $@
116     $(ECHO) '0x4930 U+6A9C # <cjk>' >> $@
117     $(ECHO) '0x5B58 U+6867 # <cjk>' >> $@
118     $(ECHO) '0x4B79 U+5118 # <cjk>' >> $@
119     $(ECHO) '0x5056 U+4FAD # <cjk>' >> $@
120     $(ECHO) '0x4C79 U+85EA # <cjk>' >> $@
121     $(ECHO) '0x692E U+85AE # <cjk>' >> $@
122     $(ECHO) '0x4F36 U+7C60 # <cjk>' >> $@
123     $(ECHO) '0x6446 U+7BED # <cjk>' >> $@
124     $(ECHO) '0x3646 U+582F # <cjk>' >> $@
125     $(ECHO) '0x4B6A U+69C7 # <cjk>' >> $@
126     $(ECHO) '0x4D5A U+9059 # <cjk>' >> $@
127     $(ECHO) '0x6076 U+7464 # <cjk>' >> $@
128     $(ECHO) '0x7421 U+5C2D # <cjk>' >> $@
129     $(ECHO) '0x7422 U+69D9 # <cjk>' >> $@
130     $(ECHO) '0x7423 U+9065 # <cjk>' >> $@
131     $(ECHO) '0x7424 U+7476 # <cjk>' >> $@
132     $(ECHO) '#?o name="gl-jis-1997-swapped"' >> $@
133     $(ECHO) '#?o <-ucs-substition="0x30FB"' >> $@
134     $(ECHO) '#?o ucm:mb_cur_max="2"' >> $@
135     $(ECHO) '#?o license="Public Domain"' >> $@
136    
137     gl-jis-1983.tbr: gl-jis-1997.tbr
138     $(CP) $< $@
139     $(PERL_INPLACE) -e 'print unless /^#(?!\?PETBL)/' $@
140     $(PERL_INPLACE) -e 'print unless /^0x742[56]/' $@
141     $(ECHO) '#?o name="gl-jis-1983"' >> $@
142     $(ECHO) '#?o <-ucs-substition="0x30FB"' >> $@
143     $(ECHO) '#?o ucm:mb_cur_max="2"' >> $@
144     $(ECHO) '#?o license="Public Domain"' >> $@
145    
146     gl-jis-1978.tbr: gl-jis-1983.tbr
147     $(CP) $< $@
148     $(PERL_INPLACE) -e 'print unless /^#(?!\?PETBL)/' $@
149     $(PERL_INPLACE) -e 'print unless /^0x(?:3033|724D|3229|7274|3342|695A|3349|5978|3376|635E|3443|5E75|3452|6B5D|375B|7074|395C|6268|3C49|6922|3F59|7057|4128|6C4D|445B|5464|4557|626A|456E|5B6D|4573|5E39|4676|6D6E|4768|6A24|4930|5B58|4B79|5056|4C79|692E|4F36|6446|3646|4B6A|4D5A|6076)/' $@
150     $(PERL_INPLACE) -e 'print unless /^0x(?:2(?:2[3-7]|8)|3022|316B|322A|337A|3622|366D|3834|396D|3C48|3D2B|3E5[5F]|4066|415F|424D|433D|444F|453[6F]|4578|4642|4739|482E|4830|4B4B|4C4D|4D69|4F39|5A39|74)/' $@
151     $(ECHO) '0x3033 U+9C3A # <cjk>' >> $@
152     $(ECHO) '0x724D U+9BF5 # <cjk>' >> $@
153     $(ECHO) '0x3229 U+9DAF # <cjk>' >> $@
154     $(ECHO) '0x7274 U+9D2C # <cjk>' >> $@
155     $(ECHO) '0x3342 U+8823 # <cjk>' >> $@
156     $(ECHO) '0x695A U+86CE # <cjk>' >> $@
157     $(ECHO) '0x3349 U+652A # <cjk>' >> $@
158     $(ECHO) '0x5978 U+64B9 # <cjk>' >> $@
159     $(ECHO) '0x3376 U+7AC8 # <cjk>' >> $@
160     $(ECHO) '0x635E U+7AC3 # <cjk>' >> $@
161     $(ECHO) '0x3443 U+704C # <cjk>' >> $@
162     $(ECHO) '0x5E75 U+6F45 # <cjk>' >> $@
163     $(ECHO) '0x3452 U+8AEB # <cjk>' >> $@
164     $(ECHO) '0x6B5D U+8ACC # <cjk>' >> $@
165     $(ECHO) '0x375B U+9838 # <cjk>' >> $@
166     $(ECHO) '0x7074 U+981A # <cjk>' >> $@
167     $(ECHO) '0x395C U+7926 # <cjk>' >> $@
168     $(ECHO) '0x6268 U+783F # <cjk>' >> $@
169     $(ECHO) '0x3C49 U+8602 # <cjk>' >> $@
170     $(ECHO) '0x6922 U+854A # <cjk>' >> $@
171     $(ECHO) '0x3F59 U+9771 # <cjk>' >> $@
172     $(ECHO) '0x7057 U+976D # <cjk>' >> $@
173     $(ECHO) '0x4128 U+8CE4 # <cjk>' >> $@
174     $(ECHO) '0x6C4D U+8CCE # <cjk>' >> $@
175     $(ECHO) '0x445B U+58FA # <cjk>' >> $@
176     $(ECHO) '0x5464 U+58F7 # <cjk>' >> $@
177     $(ECHO) '0x4557 U+792A # <cjk>' >> $@
178     $(ECHO) '0x626A U+783A # <cjk>' >> $@
179     $(ECHO) '0x456E U+6AAE # <cjk>' >> $@
180     $(ECHO) '0x5B6D U+68BC # <cjk>' >> $@
181     $(ECHO) '0x4573 U+6FE4 # <cjk>' >> $@
182     $(ECHO) '0x5E39 U+6D9B # <cjk>' >> $@
183     $(ECHO) '0x4676 U+9087 # <cjk>' >> $@
184     $(ECHO) '0x6D6E U+8FE9 # <cjk>' >> $@
185     $(ECHO) '0x4768 U+8805 # <cjk>' >> $@
186     $(ECHO) '0x6A24 U+877F # <cjk>' >> $@
187     $(ECHO) '0x4930 U+6A9C # <cjk>' >> $@
188     $(ECHO) '0x5B58 U+6867 # <cjk>' >> $@
189     $(ECHO) '0x4B79 U+5118 # <cjk>' >> $@
190     $(ECHO) '0x5056 U+4FAD # <cjk>' >> $@
191     $(ECHO) '0x4C79 U+85EA # <cjk>' >> $@
192     $(ECHO) '0x692E U+85AE # <cjk>' >> $@
193     $(ECHO) '0x4F36 U+7C60 # <cjk>' >> $@
194     $(ECHO) '0x6446 U+7BED # <cjk>' >> $@
195     $(ECHO) '0x3646 U+582F # <cjk>' >> $@
196     $(ECHO) '0x4B6A U+69C7 # <cjk>' >> $@
197     $(ECHO) '0x4D5A U+9059 # <cjk>' >> $@
198     $(ECHO) '0x6076 U+7464 # <cjk>' >> $@
199     ## 29 characters from JIS X 0208:1997 6.3.4
200     $(ECHO) '0x3022 U+555E # <cjk>' >> $@
201     $(ECHO) '0x316B U+7130 # <cjk>' >> $@
202     $(ECHO) '0x322A U+9DD7 # <cjk>' >> $@
203     $(ECHO) '0x337A U+5699 # <cjk>' >> $@
204     $(ECHO) '0x3622 U+4FE0 # <cjk>' >> $@
205     $(ECHO) '0x366D U+8ED0 # <cjk>' >> $@
206     $(ECHO) '0x3834 U+9E7C # <cjk>' >> $@
207     $(ECHO) '0x396D U+9EB4 # <cjk>' >> $@
208     $(ECHO) '0x3C48 U+5C62 # <cjk>' >> $@
209     $(ECHO) '0x3D2B U+7E61 # <cjk>' >> $@
210     $(ECHO) '0x3E55 U+8523 # <cjk>' >> $@
211     $(ECHO) '0x3E5F U+91AC # <cjk>' >> $@
212     $(ECHO) '0x4066 U+87EC # <cjk>' >> $@
213     $(ECHO) '0x415F U+6414 # <cjk>' >> $@
214     $(ECHO) '0x424D U+9A52 # <cjk>' >> $@
215     $(ECHO) '0x433D U+7C1E # <cjk>' >> $@
216     $(ECHO) '0x444F U+6451 # <cjk>' >> $@
217     $(ECHO) '0x4536 U+5861 # <cjk>' >> $@
218     $(ECHO) '0x453F U+985A # <cjk>' >> $@
219     $(ECHO) '0x4578 U+79B1 # <cjk>' >> $@
220     $(ECHO) '0x4642 U+7006 # <cjk>' >> $@
221     $(ECHO) '0x4739 U+56CA # <cjk>' >> $@
222     $(ECHO) '0x482E U+6F51 # <cjk>' >> $@
223     $(ECHO) '0x4830 U+91B1 # <cjk>' >> $@
224     $(ECHO) '0x4B4B U+9830 # <cjk>' >> $@
225     $(ECHO) '0x4C4D U+9EB5 # <cjk>' >> $@
226     $(ECHO) '0x4D69 U+840A # <cjk>' >> $@
227     $(ECHO) '0x4F39 U+881F # <cjk>' >> $@
228     $(ECHO) '0x5A39 U+6522 # <cjk>' >> $@
229     $(ECHO) '#?o name="gl-jis-1978"' >> $@
230     $(ECHO) '#?o <-ucs-substition="0x30FB"' >> $@
231     $(ECHO) '#?o ucm:mb_cur_max="2"' >> $@
232     $(ECHO) '#?o license="Public Domain"' >> $@
233    
234     .euc-jp-1997-gr-left.tbr.tmp: $(GL_JIS_TBR_FILES) \
235     gl-iso-646-alphanumeric-fw.tbr $(TBR2TBL_PL)
236     $(ECHO) '#?PETBL/1.0 SOURCE' > $@.tmp
237     $(ECHO) '#?import src="gl-jisx0208-common.tbr" mode="standard,fullwidth,isoiec646irv,NOT-SIGN,LARGE-CIRCLE,nonhan-1983-add,han-1978-revised,han-1983-revised,han-1983-swapped,han-1983-add,han-1990-revised,han-1990-add"' >> $@.tmp
238     $(TBR2TBL) $@.tmp > $@
239     $(RM) $@.tmp
240    
241     euc-jp-1997.tbr:
242     $(ECHO) '#?PETBL/1.0 SOURCE' > $@
243     $(ECHO) '#?o name="euc-jp-1997"' >> $@
244     $(ECHO) '#?o <-ucs-substition="0x30FB"' >> $@
245     $(ECHO) '#?o ucm:mb_cur_max="3"' >> $@
246     $(ECHO) '#?o license="Public Domain"' >> $@
247     $(ECHO) '#?import std-cl' >> $@
248     $(ECHO) '#?import std-0x20' >> $@
249     $(ECHO) '#?import src="gl-iso-646-alphanumeric.tbr"' >> $@
250     $(ECHO) '#?import src="gl-iso-646-symbol.tbr"' >> $@
251     $(ECHO) '#?import std-0x7F' >> $@
252     $(ECHO) '0x80 U+0080 # <control>' >> $@
253     $(ECHO) '0x81 U+0081 # <control>' >> $@
254     $(ECHO) '0x82 U+0082 # <control>' >> $@
255     $(ECHO) '0x83 U+0083 # <control>' >> $@
256     $(ECHO) '0x84 U+0084 # <control>' >> $@
257     $(ECHO) '0x85 U+0085 # <control>' >> $@
258     $(ECHO) '0x86 U+0086 # <control>' >> $@
259     $(ECHO) '0x87 U+0087 # <control>' >> $@
260     $(ECHO) '0x88 U+0088 # <control>' >> $@
261     $(ECHO) '0x89 U+0089 # <control>' >> $@
262     $(ECHO) '0x8A U+008A # <control>' >> $@
263     $(ECHO) '0x8B U+008B # <control>' >> $@
264     $(ECHO) '0x8C U+008C # <control>' >> $@
265     $(ECHO) '0x8D U+008D # <control>' >> $@
266     $(ECHO) '0x90 U+0090 # <control>' >> $@
267     $(ECHO) '0x91 U+0091 # <control>' >> $@
268     $(ECHO) '0x92 U+0092 # <control>' >> $@
269     $(ECHO) '0x93 U+0093 # <control>' >> $@
270     $(ECHO) '0x94 U+0094 # <control>' >> $@
271     $(ECHO) '0x95 U+0095 # <control>' >> $@
272     $(ECHO) '0x96 U+0096 # <control>' >> $@
273     $(ECHO) '0x97 U+0097 # <control>' >> $@
274     $(ECHO) '0x98 U+0098 # <control>' >> $@
275     $(ECHO) '0x99 U+0099 # <control>' >> $@
276     $(ECHO) '0x9A U+009A # <control>' >> $@
277     $(ECHO) '0x9B U+009B # <control>' >> $@
278     $(ECHO) '0x9C U+009C # <control>' >> $@
279     $(ECHO) '0x9D U+009D # <control>' >> $@
280     $(ECHO) '0x9E U+009E # <control>' >> $@
281     $(ECHO) '0x9F U+009F # <control>' >> $@
282     $(PERL_INPLACE) -e 'print unless /^0x8[EF]/' $@
283     $(ECHO) '#?import std-0xA0' >> $@
284     $(ECHO) '#?import std-0xFF' >> $@
285     $(ECHO) '#?import src=".euc-jp-1997-gr-left.tbr.tmp" right' >> $@
286     $(ECHO) '0x8EA1 U+FF61 # HALFWIDTH IDEOGRAPHIC FULL STOP' >> $@
287     $(ECHO) '0x8EA2 U+FF62 # HALFWIDTH LEFT CORNER BRACKET' >> $@
288     $(ECHO) '0x8EA3 U+FF63 # HALFWIDTH RIGHT CORNER BRACKET' >> $@
289     $(ECHO) '0x8EA4 U+FF64 # HALFWIDTH IDEOGRAPHIC COMMA' >> $@
290     $(ECHO) '0x8EA5 U+FF65 # HALFWIDTH KATAKANA MIDDLE DOT' >> $@
291     $(ECHO) '0x8EA6 U+FF66 # HALFWIDTH KATAKANA LETTER WO' >> $@
292     $(ECHO) '0x8EA7 U+FF67 # HALFWIDTH KATAKANA LETTER SMALL A' >> $@
293     $(ECHO) '0x8EA8 U+FF68 # HALFWIDTH KATAKANA LETTER SMALL I' >> $@
294     $(ECHO) '0x8EA9 U+FF69 # HALFWIDTH KATAKANA LETTER SMALL U' >> $@
295     $(ECHO) '0x8EAA U+FF6A # HALFWIDTH KATAKANA LETTER SMALL E' >> $@
296     $(ECHO) '0x8EAB U+FF6B # HALFWIDTH KATAKANA LETTER SMALL O' >> $@
297     $(ECHO) '0x8EAC U+FF6C # HALFWIDTH KATAKANA LETTER SMALL YA' >> $@
298     $(ECHO) '0x8EAD U+FF6D # HALFWIDTH KATAKANA LETTER SMALL YU' >> $@
299     $(ECHO) '0x8EAE U+FF6E # HALFWIDTH KATAKANA LETTER SMALL YO' >> $@
300     $(ECHO) '0x8EAF U+FF6F # HALFWIDTH KATAKANA LETTER SMALL TU' >> $@
301     $(ECHO) '0x8EB0 U+FF70 # HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK' >> $@
302     $(ECHO) '0x8EB1 U+FF71 # HALFWIDTH KATAKANA LETTER A' >> $@
303     $(ECHO) '0x8EB2 U+FF72 # HALFWIDTH KATAKANA LETTER I' >> $@
304     $(ECHO) '0x8EB3 U+FF73 # HALFWIDTH KATAKANA LETTER U' >> $@
305     $(ECHO) '0x8EB4 U+FF74 # HALFWIDTH KATAKANA LETTER E' >> $@
306     $(ECHO) '0x8EB5 U+FF75 # HALFWIDTH KATAKANA LETTER O' >> $@
307     $(ECHO) '0x8EB6 U+FF76 # HALFWIDTH KATAKANA LETTER KA' >> $@
308     $(ECHO) '0x8EB7 U+FF77 # HALFWIDTH KATAKANA LETTER KI' >> $@
309     $(ECHO) '0x8EB8 U+FF78 # HALFWIDTH KATAKANA LETTER KU' >> $@
310     $(ECHO) '0x8EB9 U+FF79 # HALFWIDTH KATAKANA LETTER KE' >> $@
311     $(ECHO) '0x8EBA U+FF7A # HALFWIDTH KATAKANA LETTER KO' >> $@
312     $(ECHO) '0x8EBB U+FF7B # HALFWIDTH KATAKANA LETTER SA' >> $@
313     $(ECHO) '0x8EBC U+FF7C # HALFWIDTH KATAKANA LETTER SI' >> $@
314     $(ECHO) '0x8EBD U+FF7D # HALFWIDTH KATAKANA LETTER SU' >> $@
315     $(ECHO) '0x8EBE U+FF7E # HALFWIDTH KATAKANA LETTER SE' >> $@
316     $(ECHO) '0x8EBF U+FF7F # HALFWIDTH KATAKANA LETTER SO' >> $@
317     $(ECHO) '0x8EC0 U+FF80 # HALFWIDTH KATAKANA LETTER TA' >> $@
318     $(ECHO) '0x8EC1 U+FF81 # HALFWIDTH KATAKANA LETTER TI' >> $@
319     $(ECHO) '0x8EC2 U+FF82 # HALFWIDTH KATAKANA LETTER TU' >> $@
320     $(ECHO) '0x8EC3 U+FF83 # HALFWIDTH KATAKANA LETTER TE' >> $@
321     $(ECHO) '0x8EC4 U+FF84 # HALFWIDTH KATAKANA LETTER TO' >> $@
322     $(ECHO) '0x8EC5 U+FF85 # HALFWIDTH KATAKANA LETTER NA' >> $@
323     $(ECHO) '0x8EC6 U+FF86 # HALFWIDTH KATAKANA LETTER NI' >> $@
324     $(ECHO) '0x8EC7 U+FF87 # HALFWIDTH KATAKANA LETTER NU' >> $@
325     $(ECHO) '0x8EC8 U+FF88 # HALFWIDTH KATAKANA LETTER NE' >> $@
326     $(ECHO) '0x8EC9 U+FF89 # HALFWIDTH KATAKANA LETTER NO' >> $@
327     $(ECHO) '0x8ECA U+FF8A # HALFWIDTH KATAKANA LETTER HA' >> $@
328     $(ECHO) '0x8ECB U+FF8B # HALFWIDTH KATAKANA LETTER HI' >> $@
329     $(ECHO) '0x8ECC U+FF8C # HALFWIDTH KATAKANA LETTER HU' >> $@
330     $(ECHO) '0x8ECD U+FF8D # HALFWIDTH KATAKANA LETTER HE' >> $@
331     $(ECHO) '0x8ECE U+FF8E # HALFWIDTH KATAKANA LETTER HO' >> $@
332     $(ECHO) '0x8ECF U+FF8F # HALFWIDTH KATAKANA LETTER MA' >> $@
333     $(ECHO) '0x8ED0 U+FF90 # HALFWIDTH KATAKANA LETTER MI' >> $@
334     $(ECHO) '0x8ED1 U+FF91 # HALFWIDTH KATAKANA LETTER MU' >> $@
335     $(ECHO) '0x8ED2 U+FF92 # HALFWIDTH KATAKANA LETTER ME' >> $@
336     $(ECHO) '0x8ED3 U+FF93 # HALFWIDTH KATAKANA LETTER MO' >> $@
337     $(ECHO) '0x8ED4 U+FF94 # HALFWIDTH KATAKANA LETTER YA' >> $@
338     $(ECHO) '0x8ED5 U+FF95 # HALFWIDTH KATAKANA LETTER YU' >> $@
339     $(ECHO) '0x8ED6 U+FF96 # HALFWIDTH KATAKANA LETTER YO' >> $@
340     $(ECHO) '0x8ED7 U+FF97 # HALFWIDTH KATAKANA LETTER RA' >> $@
341     $(ECHO) '0x8ED8 U+FF98 # HALFWIDTH KATAKANA LETTER RI' >> $@
342     $(ECHO) '0x8ED9 U+FF99 # HALFWIDTH KATAKANA LETTER RU' >> $@
343     $(ECHO) '0x8EDA U+FF9A # HALFWIDTH KATAKANA LETTER RE' >> $@
344     $(ECHO) '0x8EDB U+FF9B # HALFWIDTH KATAKANA LETTER RO' >> $@
345     $(ECHO) '0x8EDC U+FF9C # HALFWIDTH KATAKANA LETTER WA' >> $@
346     $(ECHO) '0x8EDD U+FF9D # HALFWIDTH KATAKANA LETTER N' >> $@
347     $(ECHO) '0x8EDE U+FF9E # HALFWIDTH KATAKANA VOICED SOUND MARK' >> $@
348     $(ECHO) '0x8EDF U+FF9F # HALFWIDTH KATAKANA SEMI-VOICED SOUND MARK' >> $@
349     $(ECHO) '#?import src="gl-jisx0212-common.tbr" mode="fullwidth,isoiec646irv,BROKEN-BAR,han" offset="0x8F8080"' >> $@
350    
351     shift-jis-1997.tbr:
352     $(WGET) -O $@ http://suika.fam.cx/gate/cvs/*checkout*/perl/lib/Encode/Table/cp/cp932-ms.tbr
353     $(PERL_INPLACE) -e 'print unless /^0x(?:5C|7E|8(?:[07]|1(?:5[CF]|6[01]|7C|9[12]|CA))|A0|F)|<-|->/' $@
354     $(ECHO) '0x5C U+00A5 # YEN SIGN' >> $@
355     $(ECHO) '0x7E U+203E # OVERLINE' >> $@
356     $(ECHO) '0x815C U+2014 # EM DASH' >> $@
357     $(ECHO) '0x815F U+005C # REVERSE SOLIDUS' >> $@
358     $(ECHO) '0x8160 U+301C # WAVE DASH' >> $@
359     $(ECHO) '0x8161 U+2016 # DOUBLE VERTICAL LINE' >> $@
360     $(ECHO) '0x817C U+2212 # MINUS SIGN' >> $@
361     $(ECHO) '0x8191 U+00A2 # CENT SIGN' >> $@
362     $(ECHO) '0x8192 U+00A3 # POUND SIGN' >> $@
363     $(ECHO) '0x81CA U+00AC # NOT SIGN' >> $@
364     $(ECHO) '#?o name="shift-jis-1997"' >> $@
365     $(ECHO) '#?o <-ucs-substition="0x30FB"' >> $@
366     $(ECHO) '#?o ucm:mb_cur_max="2"' >> $@
367     $(ECHO) '#?o license="Public Domain"' >> $@
368    
369     euc-jp-1997.tbl: %.tbl: %.tbr \
370     gl-iso-646-alphanumeric.tbr gl-iso-646-symbol.tbr \
371     gl-iso-646-alphanumeric-fw.tbr gl-jisx0212-common.tbr \
372     .euc-jp-1997-gr-left.tbr.tmp $(TBR2TBL_PL)
373     $(TBR2TBL) $< > $@
374    
375 wakaba 1.4 euc-jp-1997-open-nec.tbl:
376 wakaba 1.5 $(WGET) -O $@.tmp http://suika.fam.cx/gate/cvs/*checkout*/char/table/eucjp/euc-jp-1997-open-nec.tbl
377     $(ECHO) '#?PETBL/1.0 SOURCE' > $@
378     $(ECHO) '#?o name="euc-jp-1997-open-nec"' >> $@
379     $(ECHO) '#?o <-ucs-substition="0x30FB"' >> $@
380     $(ECHO) '#?o ucm:mb_cur_max="3"' >> $@
381     $(CAT) $@.tmp >> $@
382     $(RM) $@.tmp
383 wakaba 1.4
384 wakaba 1.1 shift-jis-1997.tbl: %.tbl: %.tbr $(TBR2TBL_PL)
385     $(TBR2TBL) $< > $@
386    
387     %.tbl: %.tbr $(TBR2TBL_PL)
388     $(TBR2TBL) $< > $@
389    
390     %.ucm: %.tbl $(TBL2UCM_PL)
391     $(TBL2UCM) $< > $@
392    
393     GLJIS1978 GLJIS1983 GLJIS1997: GLJIS%: gl-jis-%.ucm
394     $(MKDIR) -p $@
395 wakaba 1.2 $(CP) $< $@/$<
396     $(CD) $@ && $(ENC2XS) -M $@ $<
397 wakaba 1.1 $(CD) $@ && $(PERL_) ./Makefile.PL
398 wakaba 1.2 $(CD) $@ && $(MAKE) manifest dist
399 wakaba 1.1 GLJIS1997Swapped: gl-jis-1997-swapped.ucm
400     $(MKDIR) -p $@
401 wakaba 1.2 $(CP) $< $@/$<
402     $(CD) $@ && $(ENC2XS) -M $@ $<
403 wakaba 1.1 $(CD) $@ && $(PERL_) ./Makefile.PL
404 wakaba 1.2 $(CD) $@ && $(MAKE) manifest dist
405 wakaba 1.1 EUCJP1997: euc-jp-1997.ucm
406     $(MKDIR) -p $@
407 wakaba 1.2 $(CP) $< $@/$<
408     $(CD) $@ && $(ENC2XS) -M $@ $<
409 wakaba 1.3 $(CD) $@ && $(PERL_) -i -p -e 's/"0\.01"/"0.02"/' $@.pm
410 wakaba 1.1 $(CD) $@ && $(PERL_) ./Makefile.PL
411 wakaba 1.2 $(CD) $@ && $(MAKE) manifest dist
412 wakaba 1.4 EUCJP1997OPENNEC: euc-jp-1997-open-nec.ucm
413     $(MKDIR) -p $@
414     $(CP) $< $@/$<
415     $(CD) $@ && $(ENC2XS) -M $@ $<
416     $(CD) $@ && $(PERL_) ./Makefile.PL
417     $(CD) $@ && $(MAKE) manifest dist
418 wakaba 1.1 ShiftJIS1997: shift-jis-1997.ucm
419     $(MKDIR) -p $@
420 wakaba 1.2 $(CP) $< $@/$<
421     $(CD) $@ && $(ENC2XS) -M $@ $<
422 wakaba 1.1 $(CD) $@ && $(PERL_) ./Makefile.PL
423 wakaba 1.2 $(CD) $@ && $(MAKE) manifest dist
424 wakaba 1.1
425 wakaba 1.2 release-update:
426     $(MV) GLJIS1978/Encode-GLJIS1978-0.01.tar.gz ./
427     $(MV) GLJIS1983/Encode-GLJIS1983-0.01.tar.gz ./
428     $(MV) GLJIS1997/Encode-GLJIS1997-0.01.tar.gz ./
429     $(MV) GLJIS1997Swapped/Encode-GLJIS1997Swapped-0.01.tar.gz ./
430 wakaba 1.3 $(MV) EUCJP1997/Encode-EUCJP1997-0.02.tar.gz ./
431 wakaba 1.4 $(MV) EUCJP1997/Encode-EUCJP1997OPENNEC-0.01.tar.gz ./
432 wakaba 1.2 $(MV) ShiftJIS1997/Encode-ShiftJIS1997-0.01.tar.gz ./
433    
434     clean-GLJIS1978 clean-GLJIS1983 clean-GLJIS1997 clean-GLJIS1997Swapped \
435 wakaba 1.4 clean-EUCJP1997 clean-EUCJP1997OPENNEC clean-ShiftJIS1997: clean-%: %
436 wakaba 1.2 $(CD) $< && $(MAKE) clean
437    
438     clean: clean-GLJIS1978 clean-GLJIS1983 clean-GLJIS1997 \
439     clean-GLJIS1997Swapped \
440 wakaba 1.4 clean-EUCJP1997 clean-EUCJP1997OPENNEC clean-ShiftJIS1997
441 wakaba 1.2 $(RMALL) $(GENERATED_FILES)
442     $(RMALL) .*.tmp *~ .*~ *.BAK .*.BAK
443     $(RMALL) $(TBR2TBL_PL) $(TBL2UCM_PL)
444     $(RMALL) $(TBR_FILES) $(TBL_FILES) $(UCM_FILES)
445 wakaba 1.1
446 wakaba 1.2 clean-subdirectories:
447     $(RMDIRALL) $(ENCODE_DIRECTORIES)
448 wakaba 1.1
449 wakaba 1.2 distclean: clean-subdirectories
450 wakaba 1.1 $(RMALL) $(GENERATED_FILES)
451     $(RMALL) .*.tmp *~ .*~ *.BAK .*.BAK
452     $(RMALL) $(TBR2TBL_PL) $(TBL2UCM_PL)
453     $(RMALL) $(TBR_FILES) $(TBL_FILES) $(UCM_FILES)
454    
455 wakaba 1.5 ## $Date: 2008/11/08 04:49:08 $
456 wakaba 1.1 ## License: Public Domain.

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24