Makefile revision 1.24
1af69d88dSmrg# $NetBSD: Makefile,v 1.24 2007/03/06 15:50:45 tnozaki Exp $
2af69d88dSmrg
3af69d88dSmrgNOMAN=	# defined
4af69d88dSmrg
5af69d88dSmrg# pull LOCALEDIR and other declarations
6af69d88dSmrg.include <bsd.own.mk>
7af69d88dSmrg
8af69d88dSmrgFILESOWN=	${LOCALEOWN}
9af69d88dSmrgFILESGRP=	${LOCALEGRP}
10af69d88dSmrgFILESMODE=	${LOCALEMODE}
11af69d88dSmrg
12af69d88dSmrgLOCALES += af_ZA.ISO8859-1
13af69d88dSmrg LOCALESRC_af_ZA.ISO8859-1 = en_US.ISO_8859-1
14af69d88dSmrg
15af69d88dSmrgLOCALES += af_ZA.ISO8859-15
16af69d88dSmrg LOCALESRC_af_ZA.ISO8859-15 = en_US.DIS_8859-15
17af69d88dSmrg
18af69d88dSmrgLOCALES += be_BY.CP1251
19af69d88dSmrg LOCALESRC_be_BY.CP1251 = bg_BG.CP1251
20af69d88dSmrg
21af69d88dSmrgLOCALES += be_BY.ISO8859-5
22af69d88dSmrg LOCALESRC_be_BY.ISO8859-5 = ru_RU.ISO_8859-5
23af69d88dSmrg
24af69d88dSmrgLOCALES += bg_BG.CP1251
25af69d88dSmrg LOCALESRC_bg_BG.CP1251 = bg_BG.CP1251
26af69d88dSmrg
27af69d88dSmrgLOCALES += ca_ES.ISO8859-1
28af69d88dSmrg LOCALESRC_ca_ES.ISO8859-1 = en_US.ISO_8859-1
29af69d88dSmrg
30af69d88dSmrgLOCALES += ca_ES.ISO8859-15
31af69d88dSmrg LOCALESRC_ca_ES.ISO8859-15 = en_US.DIS_8859-15
32af69d88dSmrg
33af69d88dSmrgLOCALES += cs_CZ.ISO8859-2
34af69d88dSmrg LOCALESRC_cs_CZ.ISO8859-2 = en_US.ISO_8859-2
35
36LOCALES += da_DK.ISO8859-1
37 LOCALESRC_da_DK.ISO8859-1 = en_US.ISO_8859-1
38
39LOCALES += da_DK.ISO8859-15
40 LOCALESRC_da_DK.ISO8859-15 = en_US.DIS_8859-15
41
42LOCALES += de_AT.ISO8859-1
43 LOCALESRC_de_AT.ISO8859-1 = en_US.ISO_8859-1
44
45LOCALES += de_AT.ISO8859-15
46 LOCALESRC_de_AT.ISO8859-15 = en_US.DIS_8859-15
47
48LOCALES += de_CH.ISO8859-1
49 LOCALESRC_de_CH.ISO8859-1 = en_US.ISO_8859-1
50
51LOCALES += de_CH.ISO8859-15
52 LOCALESRC_de_CH.ISO8859-15 = en_US.DIS_8859-15
53
54LOCALES += de_DE.ISO8859-1
55 LOCALESRC_de_DE.ISO8859-1 = en_US.ISO_8859-1
56
57LOCALES += de_DE.ISO8859-15
58 LOCALESRC_de_DE.ISO8859-15 = en_US.DIS_8859-15
59
60LOCALES += el_GR.ISO8859-7
61 LOCALESRC_el_GR.ISO8859-7 = el_GR.ISO8859-7
62
63LOCALES += en_AU.ISO8859-1
64 LOCALESRC_en_AU.ISO8859-1 = en_US.ISO_8859-1
65
66LOCALES += en_AU.ISO8859-15
67 LOCALESRC_en_AU.ISO8859-15 = en_US.DIS_8859-15
68
69LOCALES += en_CA.ISO8859-1
70 LOCALESRC_en_CA.ISO8859-1 = en_US.ISO_8859-1
71
72LOCALES += en_CA.ISO8859-15
73 LOCALESRC_en_CA.ISO8859-15 = en_US.DIS_8859-15
74
75LOCALES += en_GB.ISO8859-1
76 LOCALESRC_en_GB.ISO8859-1 = en_US.ISO_8859-1
77
78LOCALES += en_GB.ISO8859-15
79 LOCALESRC_en_GB.ISO8859-15 = en_US.DIS_8859-15
80
81LOCALES += en_NZ.ISO8859-1
82 LOCALESRC_en_NZ.ISO8859-1 = en_US.ISO_8859-1
83
84LOCALES += en_NZ.ISO8859-15
85 LOCALESRC_en_NZ.ISO8859-15 = en_US.DIS_8859-15
86
87LOCALES += en_US.ISO8859-1
88 LOCALESRC_en_US.ISO8859-1 = en_US.ISO_8859-1
89
90LOCALES += en_US.ISO8859-15
91 LOCALESRC_en_US.ISO8859-15 = en_US.DIS_8859-15
92
93LOCALES += en_US.UTF-8
94 LOCALESRC_en_US.UTF-8 = en_US.UTF-8
95
96LOCALES += es_ES.ISO8859-1
97 LOCALESRC_es_ES.ISO8859-1 = en_US.ISO_8859-1
98
99LOCALES += es_ES.ISO8859-15
100 LOCALESRC_es_ES.ISO8859-15 = en_US.DIS_8859-15
101
102LOCALES += et_EE.ISO8859-15
103 LOCALESRC_et_EE.ISO8859-15 = en_US.DIS_8859-15
104
105LOCALES += eu_ES.ISO8859-1
106 LOCALESRC_eu_ES.ISO8859-1 = en_US.ISO_8859-1
107
108LOCALES += eu_ES.ISO8859-15
109 LOCALESRC_eu_ES.ISO8859-15 = en_US.DIS_8859-15
110
111LOCALES += fi_FI.ISO8859-1
112 LOCALESRC_fi_FI.ISO8859-1 = en_US.ISO_8859-1
113
114LOCALES += fi_FI.ISO8859-15
115 LOCALESRC_fi_FI.ISO8859-15 = en_US.DIS_8859-15
116
117LOCALES += fr_BE.ISO8859-1
118 LOCALESRC_fr_BE.ISO8859-1 = en_US.ISO_8859-1
119
120LOCALES += fr_BE.ISO8859-15
121 LOCALESRC_fr_BE.ISO8859-15 = en_US.DIS_8859-15
122
123LOCALES += fr_CA.ISO8859-1
124 LOCALESRC_fr_CA.ISO8859-1 = en_US.ISO_8859-1
125
126LOCALES += fr_CA.ISO8859-15
127 LOCALESRC_fr_CA.ISO8859-15 = en_US.DIS_8859-15
128
129LOCALES += fr_CH.ISO8859-1
130 LOCALESRC_fr_CH.ISO8859-1 = en_US.ISO_8859-1
131
132LOCALES += fr_CH.ISO8859-15
133 LOCALESRC_fr_CH.ISO8859-15 = en_US.DIS_8859-15
134
135LOCALES += fr_FR.ISO8859-1
136 LOCALESRC_fr_FR.ISO8859-1 = en_US.ISO_8859-1
137
138LOCALES += fr_FR.ISO8859-15
139 LOCALESRC_fr_FR.ISO8859-15 = en_US.DIS_8859-15
140
141LOCALES += hr_HR.ISO8859-2
142 LOCALESRC_hr_HR.ISO8859-2 = en_US.ISO_8859-2
143
144LOCALES += hu_HU.ISO8859-2
145 LOCALESRC_hu_HU.ISO8859-2 = en_US.ISO_8859-2
146
147LOCALES += hy_AM.ARMSCII-8
148 LOCALESRC_hy_AM.ARMSCII-8 = hy_AM.ARMSCII-8
149
150LOCALES += is_IS.ISO8859-1
151 LOCALESRC_is_IS.ISO8859-1 = en_US.ISO_8859-1
152
153LOCALES += is_IS.ISO8859-15
154 LOCALESRC_is_IS.ISO8859-15 = en_US.DIS_8859-15
155
156LOCALES += it_CH.ISO8859-1
157 LOCALESRC_it_CH.ISO8859-1 = en_US.ISO_8859-1
158
159LOCALES += it_CH.ISO8859-15
160 LOCALESRC_it_CH.ISO8859-15 = en_US.DIS_8859-15
161
162LOCALES += it_IT.ISO8859-1
163 LOCALESRC_it_IT.ISO8859-1 = en_US.ISO_8859-1
164
165LOCALES += it_IT.ISO8859-15
166 LOCALESRC_it_IT.ISO8859-15 = en_US.DIS_8859-15
167
168LOCALES += ja_JP.ct
169 LOCALESRC_ja_JP.ct = ja_JP.CTEXT
170
171LOCALES += ja_JP.eucJP
172 LOCALESRC_ja_JP.eucJP = ja_JP.eucJP
173
174LOCALES += ja_JP.ISO2022-JP
175 LOCALESRC_ja_JP.ISO2022-JP = ja_JP.ISO-2022-JP
176
177LOCALES += ja_JP.ISO2022-JP2
178 LOCALESRC_ja_JP.ISO2022-JP2 = ja_JP.ISO-2022-JP-2
179
180LOCALES += ja_JP.SJIS
181 LOCALESRC_ja_JP.SJIS = ja_JP.SJIS
182
183LOCALES += kk_KZ.PT154
184 LOCALESRC_kk_KZ.PT154 = kk_KZ.PT154
185
186LOCALES += ko_KR.eucKR
187 LOCALESRC_ko_KR.eucKR = ko_KR.eucKR
188
189LOCALES += lt_LT.ISO8859-4
190 LOCALESRC_lt_LT.ISO8859-4 = en_US.ISO_8859-4
191
192LOCALES += lt_LT.ISO8859-13
193 LOCALESRC_lt_LT.ISO8859-13 = lt_LT.ISO8859-13
194
195LOCALES += nl_BE.ISO8859-1
196 LOCALESRC_nl_BE.ISO8859-1 = en_US.ISO_8859-1
197
198LOCALES += nl_BE.ISO8859-15
199 LOCALESRC_nl_BE.ISO8859-15 = en_US.DIS_8859-15
200
201LOCALES += nl_NL.ISO8859-1
202 LOCALESRC_nl_NL.ISO8859-1 = en_US.ISO_8859-1
203
204LOCALES += nl_NL.ISO8859-15
205 LOCALESRC_nl_NL.ISO8859-15 = en_US.DIS_8859-15
206
207LOCALES += no_NO.ISO8859-1
208 LOCALESRC_no_NO.ISO8859-1 = en_US.ISO_8859-1
209
210LOCALES += no_NO.ISO8859-15
211 LOCALESRC_no_NO.ISO8859-15 = en_US.DIS_8859-15
212
213LOCALES += pt_BR.ISO8859-1
214 LOCALESRC_pt_BR.ISO8859-1 = en_US.ISO_8859-1
215
216LOCALES += pl_PL.ISO8859-2
217 LOCALESRC_pl_PL.ISO8859-2 = en_US.ISO_8859-2
218
219LOCALES += pt_PT.ISO8859-1
220 LOCALESRC_pt_PT.ISO8859-1 = en_US.ISO_8859-1
221
222LOCALES += pt_PT.ISO8859-15
223 LOCALESRC_pt_PT.ISO8859-15 = en_US.DIS_8859-15
224
225LOCALES += ro_RO.ISO8859-2
226 LOCALESRC_ro_RO.ISO8859-2 = en_US.ISO_8859-2
227
228LOCALES += ru_BY.CP1251
229 LOCALESRC_ru_BY.CP1251 = bg_BG.CP1251
230
231LOCALES += ru_RU.CP1251
232 LOCALESRC_ru_RU.CP1251 = bg_BG.CP1251
233
234LOCALES += ru_RU.CP866
235 LOCALESRC_ru_RU.CP866 = ru_RU.CP866
236
237LOCALES += ru_RU.KOI8-R
238 LOCALESRC_ru_RU.KOI8-R = ru_RU.KOI8-R
239
240LOCALES += ru_RU.ISO8859-5
241 LOCALESRC_ru_RU.ISO8859-5 = ru_RU.ISO_8859-5
242
243LOCALES += sk_SK.ISO8859-2
244 LOCALESRC_sk_SK.ISO8859-2 = en_US.ISO_8859-2
245
246LOCALES += sl_SI.ISO8859-2
247 LOCALESRC_sl_SI.ISO8859-2 = en_US.ISO_8859-2
248
249LOCALES += sr_YU.ISO8859-2
250 LOCALESRC_sr_YU.ISO8859-2 = en_US.ISO_8859-2
251
252LOCALES += sr_YU.ISO8859-5
253 LOCALESRC_sr_YU.ISO8859-5 = ru_RU.ISO_8859-5
254
255LOCALES += sv_SE.ISO8859-1
256 LOCALESRC_sv_SE.ISO8859-1 = en_US.ISO_8859-1
257
258LOCALES += sv_SE.ISO8859-15
259 LOCALESRC_sv_SE.ISO8859-15 = en_US.DIS_8859-15
260
261LOCALES += uk_UA.ISO8859-5
262 LOCALESRC_uk_UA.ISO8859-5 = ru_RU.ISO_8859-5
263
264LOCALES += uk_UA.CP1251
265 LOCALESRC_uk_UA.CP1251 = bg_BG.CP1251
266
267LOCALES += uk_UA.KOI8-U
268 LOCALESRC_uk_UA.KOI8-U = uk_UA.KOI8-U
269
270LOCALES += zh_CN.eucCN
271 LOCALESRC_zh_CN.eucCN = zh_CN.eucCN
272
273LOCALES += zh_CN.GB18030
274 LOCALESRC_zh_CN.GB18030 = zh_CN.GB18030
275
276LOCALES += zh_HK.Big5-HKSCS
277 LOCALESRC_zh_HK.Big5-HKSCS = zh_HK.Big5-HKSCS
278
279LOCALES += zh_TW.Big5
280 LOCALESRC_zh_TW.Big5 = zh_TW.BIG5
281
282# XXX: EUC-TW is not EUC!
283LOCALES += zh_TW.eucTW
284 LOCALESRC_zh_TW.eucTW = zh_TW.eucTW
285
286all: ${LOCALES:S/$/.out/g}
287realall: ${LOCALES:S/$/.out/g}
288
289.for locale in ${LOCALES}
290LOCALESRCS+=	${LOCALESRC_${locale}}
291.endfor
292CLEANFILES+=	${LOCALES:S/$/.out/g}
293
294# TODO: more use of symlinks?
295FILES=	${LOCALES:S/$/.out/g}
296.for locale in ${LOCALES}
297FILESDIR_${locale}.out=	${LOCALEDIR}/${locale}
298FILESNAME_${locale}.out=	LC_CTYPE
299.endfor
300
301# dependencies
302.for locale in ${LOCALES}
303${locale}.out: ${LOCALESRC_${locale}}.src \
304		${NETBSDSRCDIR}/lib/libc/locale/runetable.c
305	${_MKTARGET_CREATE}
306	${CPP} -I${.CURDIR} < ${.CURDIR}/${LOCALESRC_${locale}}.src | \
307	    sed -e '/^#/d' | ${TOOL_MKLOCALE} -o ${.TARGET}
308.endfor
309
310.SUFFIXES: .src .out
311.src.out:
312	${_MKTARGET_CREATE}
313	${CPP} -I${.CURDIR} < ${.IMPSRC} | sed -e '/^#/d' | \
314            ${TOOL_MKLOCALE} -o ${.TARGET}
315
316# does not work
317#depend:
318#	${MKDEP} -a ${MKDEPFLAGS} \
319#	    ${CPPFLAGS:M-[ID]*} ${CPPFLAGS} \
320#	    ${LOCALESRCS:S/$/.src/g:S/^/${.CURDIR}\//g}
321
322.include <bsd.prog.mk>
323