1 # $NetBSD: src/share/locale/ctype/Makefile,v 1.20 2005/02/10 18:03:02 tnozaki Exp $
2 # $DragonFly: src/share/locale/ctype/Makefile,v 1.1 2005/03/11 15:58:31 joerg Exp $
6 # pull LOCALEDIR and other declarations
10 FILESGRP= ${LOCALEGRP}
11 FILESMODE= ${LOCALEMODE}
13 LOCALES += bg_BG.CP1251
14 LOCALESRC_bg_BG.CP1251 = bg_BG.CP1251
16 LOCALES += ca_ES.ISO8859-1
17 LOCALESRC_ca_ES.ISO8859-1 = en_US.ISO_8859-1
19 LOCALES += ca_ES.ISO8859-15
20 LOCALESRC_ca_ES.ISO8859-15 = en_US.DIS_8859-15
22 LOCALES += cs_CZ.ISO8859-2
23 LOCALESRC_cs_CZ.ISO8859-2 = en_US.ISO_8859-2
25 LOCALES += da_DK.ISO8859-1
26 LOCALESRC_da_DK.ISO8859-1 = en_US.ISO_8859-1
28 LOCALES += da_DK.ISO8859-15
29 LOCALESRC_da_DK.ISO8859-15 = en_US.DIS_8859-15
31 LOCALES += de_AT.ISO8859-1
32 LOCALESRC_de_AT.ISO8859-1 = en_US.ISO_8859-1
34 LOCALES += de_AT.ISO8859-15
35 LOCALESRC_de_AT.ISO8859-15 = en_US.DIS_8859-15
37 LOCALES += de_CH.ISO8859-1
38 LOCALESRC_de_CH.ISO8859-1 = en_US.ISO_8859-1
40 LOCALES += de_CH.ISO8859-15
41 LOCALESRC_de_CH.ISO8859-15 = en_US.DIS_8859-15
43 LOCALES += de_DE.ISO8859-1
44 LOCALESRC_de_DE.ISO8859-1 = en_US.ISO_8859-1
46 LOCALES += de_DE.ISO8859-15
47 LOCALESRC_de_DE.ISO8859-15 = en_US.DIS_8859-15
49 LOCALES += el_GR.ISO8859-7
50 LOCALESRC_el_GR.ISO8859-7 = el_GR.ISO8859-7
52 LOCALES += en_AU.ISO8859-1
53 LOCALESRC_en_AU.ISO8859-1 = en_US.ISO_8859-1
55 LOCALES += en_AU.ISO8859-15
56 LOCALESRC_en_AU.ISO8859-15 = en_US.DIS_8859-15
58 LOCALES += en_CA.ISO8859-1
59 LOCALESRC_en_CA.ISO8859-1 = en_US.ISO_8859-1
61 LOCALES += en_CA.ISO8859-15
62 LOCALESRC_en_CA.ISO8859-15 = en_US.DIS_8859-15
64 LOCALES += en_GB.ISO8859-1
65 LOCALESRC_en_GB.ISO8859-1 = en_US.ISO_8859-1
67 LOCALES += en_GB.ISO8859-15
68 LOCALESRC_en_GB.ISO8859-15 = en_US.DIS_8859-15
70 LOCALES += en_US.ISO8859-1
71 LOCALESRC_en_US.ISO8859-1 = en_US.ISO_8859-1
73 LOCALES += en_US.ISO8859-15
74 LOCALESRC_en_US.ISO8859-15 = en_US.DIS_8859-15
76 LOCALES += en_US.UTF-8
77 LOCALESRC_en_US.UTF-8 = en_US.UTF-8
79 LOCALES += es_ES.ISO8859-1
80 LOCALESRC_es_ES.ISO8859-1 = en_US.ISO_8859-1
82 LOCALES += es_ES.ISO8859-15
83 LOCALESRC_es_ES.ISO8859-15 = en_US.DIS_8859-15
85 LOCALES += fi_FI.ISO8859-1
86 LOCALESRC_fi_FI.ISO8859-1 = en_US.ISO_8859-1
88 LOCALES += fi_FI.ISO8859-15
89 LOCALESRC_fi_FI.ISO8859-15 = en_US.DIS_8859-15
91 LOCALES += fr_BE.ISO8859-1
92 LOCALESRC_fr_BE.ISO8859-1 = en_US.ISO_8859-1
94 LOCALES += fr_BE.ISO8859-15
95 LOCALESRC_fr_BE.ISO8859-15 = en_US.DIS_8859-15
97 LOCALES += fr_CA.ISO8859-1
98 LOCALESRC_fr_CA.ISO8859-1 = en_US.ISO_8859-1
100 LOCALES += fr_CA.ISO8859-15
101 LOCALESRC_fr_CA.ISO8859-15 = en_US.DIS_8859-15
103 LOCALES += fr_CH.ISO8859-1
104 LOCALESRC_fr_CH.ISO8859-1 = en_US.ISO_8859-1
106 LOCALES += fr_CH.ISO8859-15
107 LOCALESRC_fr_CH.ISO8859-15 = en_US.DIS_8859-15
109 LOCALES += fr_FR.ISO8859-1
110 LOCALESRC_fr_FR.ISO8859-1 = en_US.ISO_8859-1
112 LOCALES += fr_FR.ISO8859-15
113 LOCALESRC_fr_FR.ISO8859-15 = en_US.DIS_8859-15
115 LOCALES += hr_HR.ISO8859-2
116 LOCALESRC_hr_HR.ISO8859-2 = en_US.ISO_8859-2
118 LOCALES += hu_HU.ISO8859-2
119 LOCALESRC_hu_HU.ISO8859-2 = en_US.ISO_8859-2
121 LOCALES += hy_AM.ARMSCII-8
122 LOCALESRC_hy_AM.ARMSCII-8 = hy_AM.ARMSCII-8
124 LOCALES += is_IS.ISO8859-1
125 LOCALESRC_is_IS.ISO8859-1 = en_US.ISO_8859-1
127 LOCALES += is_IS.ISO8859-15
128 LOCALESRC_is_IS.ISO8859-15 = en_US.DIS_8859-15
130 LOCALES += it_CH.ISO8859-1
131 LOCALESRC_it_CH.ISO8859-1 = en_US.ISO_8859-1
133 LOCALES += it_CH.ISO8859-15
134 LOCALESRC_it_CH.ISO8859-15 = en_US.DIS_8859-15
136 LOCALES += it_IT.ISO8859-1
137 LOCALESRC_it_IT.ISO8859-1 = en_US.ISO_8859-1
139 LOCALES += it_IT.ISO8859-15
140 LOCALESRC_it_IT.ISO8859-15 = en_US.DIS_8859-15
143 LOCALESRC_ja_JP.ct = ja_JP.CTEXT
145 LOCALES += ja_JP.eucJP
146 LOCALESRC_ja_JP.eucJP = ja_JP.eucJP
148 LOCALES += ja_JP.ISO2022-JP
149 LOCALESRC_ja_JP.ISO2022-JP = ja_JP.ISO-2022-JP
151 LOCALES += ja_JP.ISO2022-JP2
152 LOCALESRC_ja_JP.ISO2022-JP2 = ja_JP.ISO-2022-JP-2
154 LOCALES += ja_JP.SJIS
155 LOCALESRC_ja_JP.SJIS = ja_JP.SJIS
157 LOCALES += ko_KR.eucKR
158 LOCALESRC_ko_KR.eucKR = ko_KR.eucKR
160 LOCALES += lt_LT.ISO8859-4
161 LOCALESRC_lt_LT.ISO8859-4 = en_US.ISO_8859-4
163 LOCALES += lt_LT.ISO8859-13
164 LOCALESRC_lt_LT.ISO8859-13 = lt_LT.ISO8859-13
166 LOCALES += nl_BE.ISO8859-1
167 LOCALESRC_nl_BE.ISO8859-1 = en_US.ISO_8859-1
169 LOCALES += nl_BE.ISO8859-15
170 LOCALESRC_nl_BE.ISO8859-15 = en_US.DIS_8859-15
172 LOCALES += nl_NL.ISO8859-1
173 LOCALESRC_nl_NL.ISO8859-1 = en_US.ISO_8859-1
175 LOCALES += nl_NL.ISO8859-15
176 LOCALESRC_nl_NL.ISO8859-15 = en_US.DIS_8859-15
178 LOCALES += no_NO.ISO8859-1
179 LOCALESRC_no_NO.ISO8859-1 = en_US.ISO_8859-1
181 LOCALES += no_NO.ISO8859-15
182 LOCALESRC_no_NO.ISO8859-15 = en_US.DIS_8859-15
184 LOCALES += pl_PL.ISO8859-2
185 LOCALESRC_pl_PL.ISO8859-2 = en_US.ISO_8859-2
187 LOCALES += pt_PT.ISO8859-1
188 LOCALESRC_pt_PT.ISO8859-1 = en_US.ISO_8859-1
190 LOCALES += pt_PT.ISO8859-15
191 LOCALESRC_pt_PT.ISO8859-15 = en_US.DIS_8859-15
193 LOCALES += ru_RU.CP866
194 LOCALESRC_ru_RU.CP866 = ru_RU.CP866
196 LOCALES += ru_RU.KOI8-R
197 LOCALESRC_ru_RU.KOI8-R = ru_RU.KOI8-R
199 LOCALES += ru_RU.ISO8859-5
200 LOCALESRC_ru_RU.ISO8859-5 = ru_RU.ISO_8859-5
202 LOCALES += sk_SK.ISO8859-2
203 LOCALESRC_sk_SK.ISO8859-2 = en_US.ISO_8859-2
205 LOCALES += sl_SI.ISO8859-2
206 LOCALESRC_sl_SI.ISO8859-2 = en_US.ISO_8859-2
208 LOCALES += sv_SE.ISO8859-1
209 LOCALESRC_sv_SE.ISO8859-1 = en_US.ISO_8859-1
211 LOCALES += sv_SE.ISO8859-15
212 LOCALESRC_sv_SE.ISO8859-15 = en_US.DIS_8859-15
214 LOCALES += uk_UA.KOI8-U
215 LOCALESRC_uk_UA.KOI8-U = uk_UA.KOI8-U
217 LOCALES += zh_CN.eucCN
218 LOCALESRC_zh_CN.eucCN = zh_CN.eucCN
220 LOCALES += zh_CN.GB18030
221 LOCALESRC_zh_CN.GB18030 = zh_CN.GB18030
223 LOCALES += zh_TW.Big5
224 LOCALESRC_zh_TW.Big5 = zh_TW.BIG5
226 # XXX: EUC-TW is not EUC!
227 LOCALES += zh_TW.eucTW
228 LOCALESRC_zh_TW.eucTW = zh_TW.eucTW
230 all: ${LOCALES:S/$/.out/g}
231 realall: ${LOCALES:S/$/.out/g}
233 .for locale in ${LOCALES}
234 LOCALESRCS+= ${LOCALESRC_${locale}}
236 CLEANFILES+= ${LOCALES:S/$/.out/g}
238 # TODO: more use of symlinks?
239 FILES= ${LOCALES:S/$/.out/g}
240 .for locale in ${LOCALES}
241 FILESDIR_${locale}.out= ${LOCALEDIR}/${locale}
242 FILESNAME_${locale}.out= LC_CTYPE
246 .for locale in ${LOCALES}
247 ${locale}.out: ${LOCALESRC_${locale}}.src \
248 ${.CURDIR}/../../../lib/libc/locale/runetable.c
249 ${CPP} -I${.CURDIR} < ${.CURDIR}/${LOCALESRC_${locale}}.src | \
250 sed -e '/^#/d' | mklocale -o ${.TARGET}
255 ${CPP} -I${.CURDIR} < ${.IMPSRC} | sed -e '/^#/d' | \
256 mklocale -o ${.TARGET}
260 # ${MKDEP} -a ${MKDEPFLAGS} \
261 # ${CPPFLAGS:M-[ID]*} ${CPPFLAGS} \
262 # ${LOCALESRCS:S/$/.src/g:S/^/${.CURDIR}\//g}
264 .include <bsd.prog.mk>