Add Hye-Shik's UTF-8 message definitions.
[dragonfly.git] / share / msgdef / Makefile
1 # $FreeBSD: src/share/msgdef/Makefile,v 1.38.2.3 2002/08/17 19:30:37 ache Exp $
2 # $DragonFly: src/share/msgdef/Makefile,v 1.4 2004/09/28 08:53:32 asmodai Exp $
3
4 NOMAN=YES
5 CLEANFILES+= ${LOCALES:S/$/.out/g}
6
7 LOCALES=        af_ZA.ISO8859-1 \
8                 be_BY.UTF-8 \
9                 bg_BG.CP1251 \
10                 bg_BG.UTF-8 \
11                 cs_CZ.ISO8859-2 \
12                 da_DK.ISO8859-1 \
13                 de_DE.ISO8859-1 \
14                 el_GR.ISO8859-7 \
15                 el_GR.UTF-8 \
16                 en_CA.ISO8859-1 \
17                 en_GB.ISO8859-1 \
18                 en_US.ISO8859-1 \
19                 es_ES.ISO8859-1 \
20                 et_EE.ISO8859-15 \
21                 fi_FI.ISO8859-1 \
22                 fr_BE.ISO8859-1 \
23                 fr_CH.ISO8859-1 \
24                 fr_FR.ISO8859-1 \
25                 hi_IN.ISCII-DEV \
26                 hr_HR.ISO8859-2 \
27                 hu_HU.ISO8859-2 \
28                 hy_AM.UTF-8 \
29                 is_IS.ISO8859-1 \
30                 it_IT.ISO8859-1 \
31                 ja_JP.UTF-8 \
32                 kk_KZ.UTF-8 \
33                 lt_LT.ISO8859-13 \
34                 nl_NL.ISO8859-1 \
35                 no_NO.ISO8859-1 \
36                 pl_PL.ISO8859-2 \
37                 pt_PT.ISO8859-1 \
38                 ro_RO.ISO8859-2 \
39                 ru_RU.CP866 \
40                 ru_RU.ISO8859-5 \
41                 ru_RU.KOI8-R \
42                 ru_RU.UTF-8 \
43                 sl_SI.ISO8859-2 \
44                 sr_YU.UTF-8 \
45                 sv_SE.ISO8859-1 \
46                 tr_TR.ISO8859-9 \
47                 uk_UA.ISO8859-5 \
48                 uk_UA.KOI8-U \
49                 uk_UA.UTF-8 \
50                 ko_KR.eucKR \
51                 ja_JP.eucJP \
52                 ja_JP.SJIS \
53                 zh_TW.Big5 \
54                 zh_CN.eucCN \
55                 zh_CN.UTF-8 \
56                 zh_TW.UTF-8
57
58 LOCALEDIR=      ${DESTDIR}/usr/share/locale
59
60 ASCIILINKS=     en_CA en_GB en_US
61 LATIN15LINKS=   af_ZA da_DK de_DE en_CA en_GB en_US es_ES fi_FI fr_BE fr_CH \
62                 fr_FR is_IS it_IT nl_NL no_NO pt_PT sv_SE
63
64 UTF8_LATIN1LINKS=       af_ZA ca_ES da_DK de_DE en_CA en_GB en_US es_ES fi_FI \
65                         fr_BE fr_CH fr_FR is_IS it_IT nl_NL no_NO pt_PT sv_SE
66 UTF8_LATIN2LINKS=       cs_CZ hr_HR hu_HU pl_PL ro_RO sl_SI
67 UTF8_LATIN9LINKS=       tr_TR
68 UTF8_LATIN13LINKS=      lt_LT
69 UTF8_LATIN15LINKS=      et_EE
70
71
72 GB_LINKS=       en_AU en_NZ
73 FR_LINKS=       fr_CA
74 DE_LINKS=       de_AT de_CH
75 CZ_LINKS=       sk_SK
76 IT_LINKS=       it_CH
77 NL_LINKS=       nl_BE
78 PT_LINKS=       pt_BR
79
80 .SUFFIXES: .src .out
81
82 .src.out:
83         grep -v '^#' < ${.IMPSRC} > ${.TARGET}
84
85 all: ${LOCALES:S/$/.out/g}
86
87 afterinstall:
88 # HACK: remove LC_MESSAGES directories before installing LC_MESSAGES file
89         -rm -rf ${LOCALEDIR}/*/LC_MESSAGES
90 .for lang in ${LOCALES}
91         ${INSTALL} -m 644 -o ${BINOWN} -g ${BINGRP} ${lang}.out \
92                            ${LOCALEDIR}/${lang}/LC_MESSAGES
93 .endfor
94 .for link in ${LATIN15LINKS}
95         ln -sf ../${link}.ISO8859-1/LC_MESSAGES \
96                ${LOCALEDIR}/${link}.ISO8859-15/LC_MESSAGES
97 .endfor
98 .for link in ${GB_LINKS}
99         ln -sf ../en_GB.ISO8859-1/LC_MESSAGES \
100                 ${LOCALEDIR}/${link}.ISO8859-1/LC_MESSAGES
101         ln -sf ../en_GB.ISO8859-1/LC_MESSAGES \
102                 ${LOCALEDIR}/${link}.ISO8859-15/LC_MESSAGES
103         ln -sf ../en_GB.ISO8859-1/LC_MESSAGES \
104                 ${LOCALEDIR}/${link}.US-ASCII/LC_MESSAGES
105 .endfor
106 .for link in ${FR_LINKS}
107         ln -sf ../fr_FR.ISO8859-1/LC_MESSAGES \
108                 ${LOCALEDIR}/${link}.ISO8859-1/LC_MESSAGES
109         ln -sf ../fr_FR.ISO8859-1/LC_MESSAGES \
110                 ${LOCALEDIR}/${link}.ISO8859-15/LC_MESSAGES
111 .endfor
112 .for link in ${DE_LINKS}
113         ln -sf ../de_DE.ISO8859-1/LC_MESSAGES \
114                 ${LOCALEDIR}/${link}.ISO8859-1/LC_MESSAGES
115         ln -sf ../de_DE.ISO8859-1/LC_MESSAGES \
116                 ${LOCALEDIR}/${link}.ISO8859-15/LC_MESSAGES
117 .endfor
118 .for link in ${IT_LINKS}
119         ln -sf ../it_IT.ISO8859-1/LC_MESSAGES \
120                 ${LOCALEDIR}/${link}.ISO8859-1/LC_MESSAGES
121         ln -sf ../it_IT.ISO8859-1/LC_MESSAGES \
122                 ${LOCALEDIR}/${link}.ISO8859-15/LC_MESSAGES
123 .endfor
124 .for link in ${NL_LINKS}
125         ln -sf ../nl_NL.ISO8859-1/LC_MESSAGES \
126                 ${LOCALEDIR}/${link}.ISO8859-1/LC_MESSAGES
127         ln -sf ../nl_NL.ISO8859-1/LC_MESSAGES \
128                 ${LOCALEDIR}/${link}.ISO8859-15/LC_MESSAGES
129 .endfor
130 .for link in ${CZ_LINKS}
131         ln -sf ../cs_CZ.ISO8859-2/LC_MESSAGES \
132                 ${LOCALEDIR}/${link}.ISO8859-2/LC_MESSAGES
133 .endfor
134 .for link in ${PT_LINKS}
135         ln -sf ../pt_PT.ISO8859-1/LC_MESSAGES \
136                 ${LOCALEDIR}/${link}.ISO8859-1/LC_MESSAGES
137 .endfor
138 .for link in ${ASCIILINKS}
139         ln -sf ../${link}.ISO8859-1/LC_MESSAGES \
140                 ${LOCALEDIR}/${link}.US-ASCII/LC_MESSAGES
141 .endfor
142 .for link in ${UTF8_LATIN1LINKS}
143         ln -sf ${BASE_LOCALEDIR}/${link}.ISO8859-1/LC_MESSAGES \
144                ${LOCALEDIR}/${link}.UTF-8/LC_MESSAGES
145 .endfor
146 .for link in ${UTF8_LATIN2LINKS}
147         ln -sf ${BASE_LOCALEDIR}/${link}.ISO8859-2/LC_MESSAGES \
148                 ${LOCALEDIR}/${link}.UTF-8/LC_MESSAGES
149 .endfor
150 .for link in ${UTF8_LATIN9LINKS}
151         ln -sf ${BASE_LOCALEDIR}/${link}.ISO8859-9/LC_MESSAGES \
152                 ${LOCALEDIR}/${link}.UTF-8/LC_MESSAGES
153 .endfor
154 .for link in ${UTF8_LATIN13LINKS}
155         ln -sf ${BASE_LOCALEDIR}/${link}.ISO8859-13/LC_MESSAGES \
156                 ${LOCALEDIR}/${link}.UTF-8/LC_MESSAGES
157 .endfor
158 .for link in ${UTF8_LATIN15LINKS}
159         ln -sf ${BASE_LOCALEDIR}/${link}.ISO8859-15/LC_MESSAGES \
160                 ${LOCALEDIR}/${link}.UTF-8/LC_MESSAGES
161 .endfor
162 .for link in ${GB_LINKS}
163         ln -sf ../en_GB.UTF-8/LC_MESSAGES \
164                 ${LOCALEDIR}/${link}.UTF-8/LC_MESSAGES
165 .endfor
166 .for link in ${FR_LINKS}
167         ln -sf ../fr_FR.UTF-8/LC_MESSAGES \
168                 ${LOCALEDIR}/${link}.UTF-8/LC_MESSAGES
169 .endfor
170 .for link in ${DE_LINKS}
171         ln -sf ../de_DE.UTF-8/LC_MESSAGES \
172                 ${LOCALEDIR}/${link}.UTF-8/LC_MESSAGES
173 .endfor
174 .for link in ${IT_LINKS}
175         ln -sf ../it_IT.UTF-8/LC_MESSAGES \
176                 ${LOCALEDIR}/${link}.UTF-8/LC_MESSAGES
177 .endfor
178 .for link in ${NL_LINKS}
179         ln -sf ../nl_NL.UTF-8/LC_MESSAGES \
180                 ${LOCALEDIR}/${link}.UTF-8/LC_MESSAGES
181 .endfor
182 .for link in ${CZ_LINKS}
183         ln -sf ../cs_CZ.UTF-8/LC_MESSAGES \
184                 ${LOCALEDIR}/${link}.UTF-8/LC_MESSAGES
185 .endfor
186 .for link in ${PT_LINKS}
187         ln -sf ../pt_PT.UTF-8/LC_MESSAGES \
188                 ${LOCALEDIR}/${link}.UTF-8/LC_MESSAGES
189 .endfor
190         ln -sf ${BASE_LOCALEDIR}/ko_KR.eucKR/LC_MESSAGES \
191                 ${LOCALEDIR}/ko_KR.UTF-8/LC_MESSAGES
192         ln -sf ../zh_TW.UTF-8/LC_MESSAGES \
193                 ${LOCALEDIR}/zh_HK.UTF-8/LC_MESSAGES
194
195 .include <bsd.prog.mk>