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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sun Jul 29 04:04:43 2007 UTC (17 years, 3 months ago) by wakaba
Branch: MAIN
*** empty log message ***

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

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24