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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Sun Jul 29 05:18:33 2007 UTC (17 years, 4 months ago) by wakaba
Branch: MAIN
Changes since 1.1: +40 -54 lines
++ ChangeLog	29 Jul 2007 05:18:29 -0000
	* readme.en.html: New documentation.

	* Makefile: Unused rules are removed; it now can
	make tarballs.

2007-07-29  Wakaba  <wakaba@suika.fam.cx>

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

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24