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