1 # $NetBSD: src/share/locale/ctype/Makefile,v 1.20 2005/02/10 18:03:02 tnozaki Exp $
5 # pull LOCALEDIR and other declarations
10 FILESMODE= ${LOCALEMODE}
12 LOCALES += af_ZA.ISO8859-1
13 LOCALESRC_af_ZA.ISO8859-1 = en_US.ISO_8859-1
15 LOCALES += af_ZA.ISO8859-15
16 LOCALESRC_af_ZA.ISO8859-15 = en_US.DIS_8859-15
18 #LOCALES += am_ET.UTF-8
19 # LOCALESRC_am_ET.UTF-8 = en_US.UTF-8
21 LOCALES += be_BY.CP1131
22 LOCALESRC_be_BY.CP1131 = be_BY.CP1131
24 LOCALES += be_BY.CP1251
25 LOCALESRC_be_BY.CP1251 = bg_BG.CP1251
27 LOCALES += be_BY.ISO8859-5
28 LOCALESRC_be_BY.ISO8859-5 = ru_RU.ISO_8859-5
30 LOCALES += bg_BG.CP1251
31 LOCALESRC_bg_BG.CP1251 = bg_BG.CP1251
33 LOCALES += ca_ES.ISO8859-1
34 LOCALESRC_ca_ES.ISO8859-1 = en_US.ISO_8859-1
36 LOCALES += ca_ES.ISO8859-15
37 LOCALESRC_ca_ES.ISO8859-15 = en_US.DIS_8859-15
39 LOCALES += cs_CZ.ISO8859-2
40 LOCALESRC_cs_CZ.ISO8859-2 = en_US.ISO_8859-2
42 LOCALES += da_DK.ISO8859-1
43 LOCALESRC_da_DK.ISO8859-1 = en_US.ISO_8859-1
45 LOCALES += da_DK.ISO8859-15
46 LOCALESRC_da_DK.ISO8859-15 = en_US.DIS_8859-15
48 LOCALES += de_AT.ISO8859-1
49 LOCALESRC_de_AT.ISO8859-1 = en_US.ISO_8859-1
51 LOCALES += de_AT.ISO8859-15
52 LOCALESRC_de_AT.ISO8859-15 = en_US.DIS_8859-15
54 LOCALES += de_CH.ISO8859-1
55 LOCALESRC_de_CH.ISO8859-1 = en_US.ISO_8859-1
57 LOCALES += de_CH.ISO8859-15
58 LOCALESRC_de_CH.ISO8859-15 = en_US.DIS_8859-15
60 LOCALES += de_DE.ISO8859-1
61 LOCALESRC_de_DE.ISO8859-1 = en_US.ISO_8859-1
63 LOCALES += de_DE.ISO8859-15
64 LOCALESRC_de_DE.ISO8859-15 = en_US.DIS_8859-15
66 LOCALES += el_GR.ISO8859-7
67 LOCALESRC_el_GR.ISO8859-7 = el_GR.ISO8859-7
69 LOCALES += en_AU.ISO8859-1
70 LOCALESRC_en_AU.ISO8859-1 = en_US.ISO_8859-1
72 LOCALES += en_AU.ISO8859-15
73 LOCALESRC_en_AU.ISO8859-15 = en_US.DIS_8859-15
75 LOCALES += en_CA.ISO8859-1
76 LOCALESRC_en_CA.ISO8859-1 = en_US.ISO_8859-1
78 LOCALES += en_CA.ISO8859-15
79 LOCALESRC_en_CA.ISO8859-15 = en_US.DIS_8859-15
81 LOCALES += en_GB.ISO8859-1
82 LOCALESRC_en_GB.ISO8859-1 = en_US.ISO_8859-1
84 LOCALES += en_GB.ISO8859-15
85 LOCALESRC_en_GB.ISO8859-15 = en_US.DIS_8859-15
87 LOCALES += en_US.ISO8859-1
88 LOCALESRC_en_US.ISO8859-1 = en_US.ISO_8859-1
90 LOCALES += en_US.ISO8859-15
91 LOCALESRC_en_US.ISO8859-15 = en_US.DIS_8859-15
93 LOCALES += en_US.US-ASCII
94 LOCALESRC_en_US.US-ASCII = en_US.ASCII
96 LOCALES += en_US.UTF-8
97 LOCALESRC_en_US.UTF-8 = en_US.UTF-8
99 LOCALES += es_ES.ISO8859-1
100 LOCALESRC_es_ES.ISO8859-1 = en_US.ISO_8859-1
102 LOCALES += es_ES.ISO8859-15
103 LOCALESRC_es_ES.ISO8859-15 = en_US.DIS_8859-15
105 LOCALES += et_EE.ISO8859-15
106 LOCALESRC_et_EE.ISO8859-15 = en_US.DIS_8859-15
108 LOCALES += eu_ES.ISO8859-1
109 LOCALESRC_eu_ES.ISO8859-1 = en_US.ISO_8859-1
111 LOCALES += eu_ES.ISO8859-15
112 LOCALESRC_eu_ES.ISO8859-15 = en_US.DIS_8859-15
114 LOCALES += fi_FI.ISO8859-1
115 LOCALESRC_fi_FI.ISO8859-1 = en_US.ISO_8859-1
117 LOCALES += fi_FI.ISO8859-15
118 LOCALESRC_fi_FI.ISO8859-15 = en_US.DIS_8859-15
120 LOCALES += fr_BE.ISO8859-1
121 LOCALESRC_fr_BE.ISO8859-1 = en_US.ISO_8859-1
123 LOCALES += fr_BE.ISO8859-15
124 LOCALESRC_fr_BE.ISO8859-15 = en_US.DIS_8859-15
126 LOCALES += fr_CA.ISO8859-1
127 LOCALESRC_fr_CA.ISO8859-1 = en_US.ISO_8859-1
129 LOCALES += fr_CA.ISO8859-15
130 LOCALESRC_fr_CA.ISO8859-15 = en_US.DIS_8859-15
132 LOCALES += fr_CA.UTF-8
133 LOCALESRC_fr_CA.UTF-8 = en_US.UTF-8
135 LOCALES += fr_CH.ISO8859-1
136 LOCALESRC_fr_CH.ISO8859-1 = en_US.ISO_8859-1
138 LOCALES += fr_CH.ISO8859-15
139 LOCALESRC_fr_CH.ISO8859-15 = en_US.DIS_8859-15
141 LOCALES += fr_CH.UTF-8
142 LOCALESRC_fr_CH.UTF-8 = en_US.UTF-8
144 LOCALES += fr_FR.ISO8859-1
145 LOCALESRC_fr_FR.ISO8859-1 = en_US.ISO_8859-1
147 LOCALES += fr_FR.ISO8859-15
148 LOCALESRC_fr_FR.ISO8859-15 = en_US.DIS_8859-15
150 LOCALES += fr_FR.UTF-8
151 LOCALESRC_fr_FR.UTF-8 = en_US.UTF-8
153 #LOCALES += he_IL.UTF-8
154 # LOCALESRC_he_IL.UTF-8 = en_US.UTF-8
156 LOCALES += hr_HR.ISO8859-2
157 LOCALESRC_hr_HR.ISO8859-2 = en_US.ISO_8859-2
159 LOCALES += hu_HU.ISO8859-2
160 LOCALESRC_hu_HU.ISO8859-2 = en_US.ISO_8859-2
162 LOCALES += hy_AM.ARMSCII-8
163 LOCALESRC_hy_AM.ARMSCII-8 = hy_AM.ARMSCII-8
165 LOCALES += is_IS.ISO8859-1
166 LOCALESRC_is_IS.ISO8859-1 = en_US.ISO_8859-1
168 LOCALES += is_IS.ISO8859-15
169 LOCALESRC_is_IS.ISO8859-15 = en_US.DIS_8859-15
171 LOCALES += it_CH.ISO8859-1
172 LOCALESRC_it_CH.ISO8859-1 = en_US.ISO_8859-1
174 LOCALES += it_CH.ISO8859-15
175 LOCALESRC_it_CH.ISO8859-15 = en_US.DIS_8859-15
177 LOCALES += it_IT.ISO8859-1
178 LOCALESRC_it_IT.ISO8859-1 = en_US.ISO_8859-1
180 LOCALES += it_IT.ISO8859-15
181 LOCALESRC_it_IT.ISO8859-15 = en_US.DIS_8859-15
184 LOCALESRC_ja_JP.ct = ja_JP.CTEXT
186 LOCALES += ja_JP.eucJP
187 LOCALESRC_ja_JP.eucJP = ja_JP.eucJP
189 LOCALES += ja_JP.ISO2022-JP
190 LOCALESRC_ja_JP.ISO2022-JP = ja_JP.ISO-2022-JP
192 LOCALES += ja_JP.ISO2022-JP2
193 LOCALESRC_ja_JP.ISO2022-JP2 = ja_JP.ISO-2022-JP-2
195 LOCALES += ja_JP.SJIS
196 LOCALESRC_ja_JP.SJIS = ja_JP.SJIS
198 LOCALES += kk_KZ.PT154
199 LOCALESRC_kk_KZ.PT154 = kk_KZ.PT154
201 LOCALES += ko_KR.eucKR
202 LOCALESRC_ko_KR.eucKR = ko_KR.eucKR
204 LOCALES += lt_LT.ISO8859-4
205 LOCALESRC_lt_LT.ISO8859-4 = en_US.ISO_8859-4
207 LOCALES += lt_LT.ISO8859-13
208 LOCALESRC_lt_LT.ISO8859-13 = lt_LT.ISO8859-13
210 #LOCALES += RC_mn_MN.UTF-8
211 # LOCALESRC_mn_MN.UTF-8 = en_US.UTF-8
213 LOCALES += nl_BE.ISO8859-1
214 LOCALESRC_nl_BE.ISO8859-1 = en_US.ISO_8859-1
216 LOCALES += nl_BE.ISO8859-15
217 LOCALESRC_nl_BE.ISO8859-15 = en_US.DIS_8859-15
219 LOCALES += nl_NL.ISO8859-1
220 LOCALESRC_nl_NL.ISO8859-1 = en_US.ISO_8859-1
222 LOCALES += nl_NL.ISO8859-15
223 LOCALESRC_nl_NL.ISO8859-15 = en_US.DIS_8859-15
225 LOCALES += nn_NO.ISO8859-1
226 LOCALESRC_nn_NO.ISO8859-1 = en_US.ISO_8859-1
228 LOCALES += nn_NO.ISO8859-15
229 LOCALESRC_nn_NO.ISO8859-15 = en_US.DIS_8859-15
231 LOCALES += no_NO.ISO8859-1
232 LOCALESRC_no_NO.ISO8859-1 = en_US.ISO_8859-1
234 LOCALES += no_NO.ISO8859-15
235 LOCALESRC_no_NO.ISO8859-15 = en_US.DIS_8859-15
237 LOCALES += pl_PL.ISO8859-2
238 LOCALESRC_pl_PL.ISO8859-2 = en_US.ISO_8859-2
240 LOCALES += pt_BR.ISO8859-1
241 LOCALESRC_pt_BR.ISO8859-1 = en_US.ISO_8859-1
243 LOCALES += pt_PT.ISO8859-1
244 LOCALESRC_pt_PT.ISO8859-1 = en_US.ISO_8859-1
246 LOCALES += pt_PT.ISO8859-15
247 LOCALESRC_pt_PT.ISO8859-15 = en_US.DIS_8859-15
249 LOCALES += ro_RO.ISO8859-2
250 LOCALESRC_ro_RO.ISO8859-2 = en_US.ISO_8859-2
252 LOCALES += ru_BY.CP1251
253 LOCALESRC_ru_BY.CP1251 = bg_BG.CP1251
255 LOCALES += ru_RU.CP866
256 LOCALESRC_ru_RU.CP866 = ru_RU.CP866
258 LOCALES += ru_RU.CP1251
259 LOCALESRC_ru_RU.CP1251 = bg_BG.CP1251
261 LOCALES += ru_RU.KOI8-R
262 LOCALESRC_ru_RU.KOI8-R = ru_RU.KOI8-R
264 LOCALES += ru_RU.ISO8859-5
265 LOCALESRC_ru_RU.ISO8859-5 = ru_RU.ISO_8859-5
267 LOCALES += sk_SK.ISO8859-2
268 LOCALESRC_sk_SK.ISO8859-2 = en_US.ISO_8859-2
270 LOCALES += sl_SI.ISO8859-2
271 LOCALESRC_sl_SI.ISO8859-2 = en_US.ISO_8859-2
273 LOCALES += sr_ME.ISO8859-2
274 LOCALESRC_sr_ME.ISO8859-2 = en_US.ISO_8859-2
276 LOCALES += sr_ME.ISO8859-5
277 LOCALESRC_sr_ME.ISO8859-5 = ru_RU.ISO_8859-5
279 LOCALES += sr_RS.ISO8859-2
280 LOCALESRC_sr_RS.ISO8859-2 = en_US.ISO_8859-2
282 LOCALES += sr_RS.ISO8859-5
283 LOCALESRC_sr_RS.ISO8859-5 = ru_RU.ISO_8859-5
285 LOCALES += sv_SE.ISO8859-1
286 LOCALESRC_sv_SE.ISO8859-1 = en_US.ISO_8859-1
288 LOCALES += sv_SE.ISO8859-15
289 LOCALESRC_sv_SE.ISO8859-15 = en_US.DIS_8859-15
291 LOCALES += tr_TR.ISO8859-9
292 LOCALESRC_tr_TR.ISO8859-9 = tr_TR.ISO8859-9
294 LOCALES += uk_UA.CP1251
295 LOCALESRC_uk_UA.CP1251 = bg_BG.CP1251
297 LOCALES += uk_UA.ISO8859-5
298 LOCALESRC_uk_UA.ISO8859-5 = ru_RU.ISO_8859-5
300 LOCALES += uk_UA.KOI8-U
301 LOCALESRC_uk_UA.KOI8-U = uk_UA.KOI8-U
303 LOCALES += zh_CN.eucCN
304 LOCALESRC_zh_CN.eucCN = zh_CN.eucCN
306 LOCALES += zh_CN.GB18030
307 LOCALESRC_zh_CN.GB18030 = zh_CN.GB18030
309 LOCALES += zh_HK.Big5HKSCS
310 LOCALESRC_zh_HK.Big5HKSCS = zh_HK.Big5-HKSCS
312 LOCALES += zh_TW.Big5
313 LOCALESRC_zh_TW.Big5 = zh_TW.BIG5
315 # XXX: EUC-TW is not EUC!
316 LOCALES += zh_TW.eucTW
317 LOCALESRC_zh_TW.eucTW = zh_TW.eucTW
319 all: ${LOCALES:S/$/.out/g}
320 realall: ${LOCALES:S/$/.out/g}
322 .for locale in ${LOCALES}
323 LOCALESRCS+= ${LOCALESRC_${locale}}
325 CLEANFILES+= ${LOCALES:S/$/.out/g}
327 # TODO: more use of symlinks?
328 FILES= ${LOCALES:S/$/.out/g}
329 .for locale in ${LOCALES}
330 FILESDIR_${locale}.out= ${LOCALEDIR}/${locale}
331 FILESNAME_${locale}.out= LC_CTYPE
335 .for locale in ${LOCALES}
336 ${locale}.out: ${LOCALESRC_${locale}}.src \
337 ${.CURDIR}/../../../lib/libc/locale/runetable.c
338 ${CPP} -I${.CURDIR} < ${.CURDIR}/${LOCALESRC_${locale}}.src | \
339 sed -e '/^#/d' | mklocale -o ${.TARGET}
344 ${CPP} -I${.CURDIR} < ${.IMPSRC} | sed -e '/^#/d' | \
345 mklocale -o ${.TARGET}
349 # ${MKDEP} -a ${MKDEPFLAGS} \
350 # ${CPPFLAGS:M-[ID]*} ${CPPFLAGS} \
351 # ${LOCALESRCS:S/$/.src/g:S/^/${.CURDIR}\//g}
353 .include <bsd.prog.mk>