Merge from vendor branch TNFTP:
[dragonfly.git] / share / locale / ctype / Makefile
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 $
3
4 NOMAN=  # defined
5
6 # pull LOCALEDIR and other declarations
7 .include <bsd.own.mk>
8
9 FILESOWN=       ${LOCALEOWN}
10 FILESGRP=       ${LOCALEGRP}
11 FILESMODE=      ${LOCALEMODE}
12
13 LOCALES += be_BY.CP1131
14  LOCALESRC_be_BY.CP1131 = be_BY.CP1131
15
16 LOCALES += be_BY.CP1251
17  LOCALESRC_be_BY.CP1251 = bg_BG.CP1251
18
19 LOCALES += be_BY.ISO8859-5
20  LOCALESRC_be_BY.ISO8859-5 = ru_RU.ISO_8859-5
21
22 LOCALES += bg_BG.CP1251
23  LOCALESRC_bg_BG.CP1251 = bg_BG.CP1251
24
25 LOCALES += ca_ES.ISO8859-1
26  LOCALESRC_ca_ES.ISO8859-1 = en_US.ISO_8859-1
27
28 LOCALES += ca_ES.ISO8859-15
29  LOCALESRC_ca_ES.ISO8859-15 = en_US.DIS_8859-15
30
31 LOCALES += cs_CZ.ISO8859-2
32  LOCALESRC_cs_CZ.ISO8859-2 = en_US.ISO_8859-2
33
34 LOCALES += da_DK.ISO8859-1
35  LOCALESRC_da_DK.ISO8859-1 = en_US.ISO_8859-1
36
37 LOCALES += da_DK.ISO8859-15
38  LOCALESRC_da_DK.ISO8859-15 = en_US.DIS_8859-15
39
40 LOCALES += de_AT.ISO8859-1
41  LOCALESRC_de_AT.ISO8859-1 = en_US.ISO_8859-1
42
43 LOCALES += de_AT.ISO8859-15
44  LOCALESRC_de_AT.ISO8859-15 = en_US.DIS_8859-15
45
46 LOCALES += de_CH.ISO8859-1
47  LOCALESRC_de_CH.ISO8859-1 = en_US.ISO_8859-1
48
49 LOCALES += de_CH.ISO8859-15
50  LOCALESRC_de_CH.ISO8859-15 = en_US.DIS_8859-15
51
52 LOCALES += de_DE.ISO8859-1
53  LOCALESRC_de_DE.ISO8859-1 = en_US.ISO_8859-1
54
55 LOCALES += de_DE.ISO8859-15
56  LOCALESRC_de_DE.ISO8859-15 = en_US.DIS_8859-15
57
58 LOCALES += el_GR.ISO8859-7
59  LOCALESRC_el_GR.ISO8859-7 = el_GR.ISO8859-7
60
61 LOCALES += en_AU.ISO8859-1
62  LOCALESRC_en_AU.ISO8859-1 = en_US.ISO_8859-1
63
64 LOCALES += en_AU.ISO8859-15
65  LOCALESRC_en_AU.ISO8859-15 = en_US.DIS_8859-15
66
67 LOCALES += en_CA.ISO8859-1
68  LOCALESRC_en_CA.ISO8859-1 = en_US.ISO_8859-1
69
70 LOCALES += en_CA.ISO8859-15
71  LOCALESRC_en_CA.ISO8859-15 = en_US.DIS_8859-15
72
73 LOCALES += en_GB.ISO8859-1
74  LOCALESRC_en_GB.ISO8859-1 = en_US.ISO_8859-1
75
76 LOCALES += en_GB.ISO8859-15
77  LOCALESRC_en_GB.ISO8859-15 = en_US.DIS_8859-15
78
79 LOCALES += en_US.ISO8859-1
80  LOCALESRC_en_US.ISO8859-1 = en_US.ISO_8859-1
81
82 LOCALES += en_US.ISO8859-15
83  LOCALESRC_en_US.ISO8859-15 = en_US.DIS_8859-15
84
85 LOCALES += en_US.UTF-8
86  LOCALESRC_en_US.UTF-8 = en_US.UTF-8
87
88 LOCALES += es_ES.ISO8859-1
89  LOCALESRC_es_ES.ISO8859-1 = en_US.ISO_8859-1
90
91 LOCALES += es_ES.ISO8859-15
92  LOCALESRC_es_ES.ISO8859-15 = en_US.DIS_8859-15
93
94 LOCALES += fi_FI.ISO8859-1
95  LOCALESRC_fi_FI.ISO8859-1 = en_US.ISO_8859-1
96
97 LOCALES += fi_FI.ISO8859-15
98  LOCALESRC_fi_FI.ISO8859-15 = en_US.DIS_8859-15
99
100 LOCALES += fr_BE.ISO8859-1
101  LOCALESRC_fr_BE.ISO8859-1 = en_US.ISO_8859-1
102
103 LOCALES += fr_BE.ISO8859-15
104  LOCALESRC_fr_BE.ISO8859-15 = en_US.DIS_8859-15
105
106 LOCALES += fr_CA.ISO8859-1
107  LOCALESRC_fr_CA.ISO8859-1 = en_US.ISO_8859-1
108
109 LOCALES += fr_CA.ISO8859-15
110  LOCALESRC_fr_CA.ISO8859-15 = en_US.DIS_8859-15
111
112 LOCALES += fr_CH.ISO8859-1
113  LOCALESRC_fr_CH.ISO8859-1 = en_US.ISO_8859-1
114
115 LOCALES += fr_CH.ISO8859-15
116  LOCALESRC_fr_CH.ISO8859-15 = en_US.DIS_8859-15
117
118 LOCALES += fr_FR.ISO8859-1
119  LOCALESRC_fr_FR.ISO8859-1 = en_US.ISO_8859-1
120
121 LOCALES += fr_FR.ISO8859-15
122  LOCALESRC_fr_FR.ISO8859-15 = en_US.DIS_8859-15
123
124 LOCALES += hr_HR.ISO8859-2
125  LOCALESRC_hr_HR.ISO8859-2 = en_US.ISO_8859-2
126
127 LOCALES += hu_HU.ISO8859-2
128  LOCALESRC_hu_HU.ISO8859-2 = en_US.ISO_8859-2
129
130 LOCALES += hy_AM.ARMSCII-8
131  LOCALESRC_hy_AM.ARMSCII-8 = hy_AM.ARMSCII-8
132
133 LOCALES += is_IS.ISO8859-1
134  LOCALESRC_is_IS.ISO8859-1 = en_US.ISO_8859-1
135
136 LOCALES += is_IS.ISO8859-15
137  LOCALESRC_is_IS.ISO8859-15 = en_US.DIS_8859-15
138
139 LOCALES += it_CH.ISO8859-1
140  LOCALESRC_it_CH.ISO8859-1 = en_US.ISO_8859-1
141
142 LOCALES += it_CH.ISO8859-15
143  LOCALESRC_it_CH.ISO8859-15 = en_US.DIS_8859-15
144
145 LOCALES += it_IT.ISO8859-1
146  LOCALESRC_it_IT.ISO8859-1 = en_US.ISO_8859-1
147
148 LOCALES += it_IT.ISO8859-15
149  LOCALESRC_it_IT.ISO8859-15 = en_US.DIS_8859-15
150
151 LOCALES += ja_JP.ct
152  LOCALESRC_ja_JP.ct = ja_JP.CTEXT
153
154 LOCALES += ja_JP.eucJP
155  LOCALESRC_ja_JP.eucJP = ja_JP.eucJP
156
157 LOCALES += ja_JP.ISO2022-JP
158  LOCALESRC_ja_JP.ISO2022-JP = ja_JP.ISO-2022-JP
159
160 LOCALES += ja_JP.ISO2022-JP2
161  LOCALESRC_ja_JP.ISO2022-JP2 = ja_JP.ISO-2022-JP-2
162
163 LOCALES += ja_JP.SJIS
164  LOCALESRC_ja_JP.SJIS = ja_JP.SJIS
165
166 LOCALES += ko_KR.eucKR
167  LOCALESRC_ko_KR.eucKR = ko_KR.eucKR
168
169 LOCALES += lt_LT.ISO8859-4
170  LOCALESRC_lt_LT.ISO8859-4 = en_US.ISO_8859-4
171
172 LOCALES += lt_LT.ISO8859-13
173  LOCALESRC_lt_LT.ISO8859-13 = lt_LT.ISO8859-13
174
175 LOCALES += nl_BE.ISO8859-1
176  LOCALESRC_nl_BE.ISO8859-1 = en_US.ISO_8859-1
177
178 LOCALES += nl_BE.ISO8859-15
179  LOCALESRC_nl_BE.ISO8859-15 = en_US.DIS_8859-15
180
181 LOCALES += nl_NL.ISO8859-1
182  LOCALESRC_nl_NL.ISO8859-1 = en_US.ISO_8859-1
183
184 LOCALES += nl_NL.ISO8859-15
185  LOCALESRC_nl_NL.ISO8859-15 = en_US.DIS_8859-15
186
187 LOCALES += no_NO.ISO8859-1
188  LOCALESRC_no_NO.ISO8859-1 = en_US.ISO_8859-1
189
190 LOCALES += no_NO.ISO8859-15
191  LOCALESRC_no_NO.ISO8859-15 = en_US.DIS_8859-15
192
193 LOCALES += pl_PL.ISO8859-2
194  LOCALESRC_pl_PL.ISO8859-2 = en_US.ISO_8859-2
195
196 LOCALES += pt_PT.ISO8859-1
197  LOCALESRC_pt_PT.ISO8859-1 = en_US.ISO_8859-1
198
199 LOCALES += pt_PT.ISO8859-15
200  LOCALESRC_pt_PT.ISO8859-15 = en_US.DIS_8859-15
201
202 LOCALES += ru_RU.CP866
203  LOCALESRC_ru_RU.CP866 = ru_RU.CP866
204
205 LOCALES += ru_RU.KOI8-R
206  LOCALESRC_ru_RU.KOI8-R = ru_RU.KOI8-R
207
208 LOCALES += ru_RU.ISO8859-5
209  LOCALESRC_ru_RU.ISO8859-5 = ru_RU.ISO_8859-5
210
211 LOCALES += sk_SK.ISO8859-2
212  LOCALESRC_sk_SK.ISO8859-2 = en_US.ISO_8859-2
213
214 LOCALES += sl_SI.ISO8859-2
215  LOCALESRC_sl_SI.ISO8859-2 = en_US.ISO_8859-2
216
217 LOCALES += sv_SE.ISO8859-1
218  LOCALESRC_sv_SE.ISO8859-1 = en_US.ISO_8859-1
219
220 LOCALES += sv_SE.ISO8859-15
221  LOCALESRC_sv_SE.ISO8859-15 = en_US.DIS_8859-15
222
223 LOCALES += uk_UA.KOI8-U
224  LOCALESRC_uk_UA.KOI8-U = uk_UA.KOI8-U
225
226 LOCALES += zh_CN.eucCN
227  LOCALESRC_zh_CN.eucCN = zh_CN.eucCN
228
229 LOCALES += zh_CN.GB18030
230  LOCALESRC_zh_CN.GB18030 = zh_CN.GB18030
231
232 LOCALES += zh_TW.Big5
233  LOCALESRC_zh_TW.Big5 = zh_TW.BIG5
234
235 # XXX: EUC-TW is not EUC!
236 LOCALES += zh_TW.eucTW
237  LOCALESRC_zh_TW.eucTW = zh_TW.eucTW
238
239 all: ${LOCALES:S/$/.out/g}
240 realall: ${LOCALES:S/$/.out/g}
241
242 .for locale in ${LOCALES}
243 LOCALESRCS+=    ${LOCALESRC_${locale}}
244 .endfor
245 CLEANFILES+=    ${LOCALES:S/$/.out/g}
246
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
253
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
261
262 .SUFFIXES: .src .out
263 .src.out:
264         ${CPP} -I${.CURDIR} < ${.IMPSRC} | sed -e '/^#/d' | \
265             mklocale -o ${.TARGET}
266
267 # does not work
268 #depend:
269 #       ${MKDEP} -a ${MKDEPFLAGS} \
270 #           ${CPPFLAGS:M-[ID]*} ${CPPFLAGS} \
271 #           ${LOCALESRCS:S/$/.src/g:S/^/${.CURDIR}\//g}
272
273 .include <bsd.prog.mk>