locales: Rename zh_han* to zh_Han* (capitalize)
[dragonfly.git] / share / msgdef / Makefile
CommitLineData
45a9a2eb 1# $FreeBSD: src/share/msgdef/Makefile,v 1.69 2012/11/17 01:50:59 svnexp Exp $
984263bc
MD
2
3LOCALES= af_ZA.ISO8859-1 \
45a9a2eb 4 am_ET.UTF-8 \
aee9908a
SW
5 be_BY.CP1131 \
6 be_BY.CP1251 \
7 be_BY.ISO8859-5 \
99a5de30 8 be_BY.UTF-8 \
984263bc 9 bg_BG.CP1251 \
99a5de30 10 bg_BG.UTF-8 \
45a9a2eb 11 ca_ES.ISO8859-1 \
984263bc
MD
12 cs_CZ.ISO8859-2 \
13 da_DK.ISO8859-1 \
14 de_DE.ISO8859-1 \
15 el_GR.ISO8859-7 \
99a5de30 16 el_GR.UTF-8 \
984263bc
MD
17 en_CA.ISO8859-1 \
18 en_GB.ISO8859-1 \
19 en_US.ISO8859-1 \
20 es_ES.ISO8859-1 \
21 et_EE.ISO8859-15 \
45a9a2eb 22 eu_ES.ISO8859-1 \
984263bc
MD
23 fi_FI.ISO8859-1 \
24 fr_BE.ISO8859-1 \
25 fr_CH.ISO8859-1 \
26 fr_FR.ISO8859-1 \
45a9a2eb 27 he_IL.UTF-8 \
984263bc
MD
28 hi_IN.ISCII-DEV \
29 hr_HR.ISO8859-2 \
30 hu_HU.ISO8859-2 \
45a9a2eb 31 hy_AM.ARMSCII-8 \
99a5de30 32 hy_AM.UTF-8 \
984263bc
MD
33 is_IS.ISO8859-1 \
34 it_IT.ISO8859-1 \
45a9a2eb
SW
35 ja_JP.eucJP \
36 ja_JP.SJIS \
99a5de30 37 ja_JP.UTF-8 \
45a9a2eb 38 kk_KZ.PT154 \
99a5de30 39 kk_KZ.UTF-8 \
45a9a2eb
SW
40 ko_KR.UTF-8 \
41 ko_KR.eucKR \
460e7fea 42 lt_LT.ISO8859-13 \
45a9a2eb
SW
43 lv_LV.ISO8859-13 \
44 lv_LV.UTF-8 \
dbf3d3ba 45 mn_Cyrl_MN.UTF-8 \
984263bc 46 nl_NL.ISO8859-1 \
1e77a474 47 nb_NO.ISO8859-1 \
984263bc
MD
48 pl_PL.ISO8859-2 \
49 pt_PT.ISO8859-1 \
50 ro_RO.ISO8859-2 \
45a9a2eb 51 ru_RU.CP1251 \
984263bc
MD
52 ru_RU.CP866 \
53 ru_RU.ISO8859-5 \
54 ru_RU.KOI8-R \
99a5de30 55 ru_RU.UTF-8 \
984263bc 56 sl_SI.ISO8859-2 \
dbf3d3ba
JM
57 sr_Latn_RS.ISO8859-2 \
58 sr_Cyrl_RS.ISO8859-5 \
59 sr_Latn_RS.UTF-8 \
984263bc
MD
60 sv_SE.ISO8859-1 \
61 tr_TR.ISO8859-9 \
45a9a2eb 62 uk_UA.CP1251 \
984263bc
MD
63 uk_UA.ISO8859-5 \
64 uk_UA.KOI8-U \
99a5de30 65 uk_UA.UTF-8 \
7323e49f
JM
66 zh_Hans_CN.eucCN \
67 zh_Hans_CN.GB18030 \
68 zh_Hans_CN.GB2312 \
69 zh_Hans_CN.UTF-8 \
70 zh_Hant_TW.Big5 \
71 zh_Hant_TW.UTF-8
984263bc 72
45a9a2eb 73LOCALEDIR= /usr/share/locale
984263bc
MD
74
75.SUFFIXES: .src .out
76
77.src.out:
78 grep -v '^#' < ${.IMPSRC} > ${.TARGET}
79
45a9a2eb
SW
80FILES= ${LOCALES:S/$/.out/}
81FILESNAME= LC_MESSAGES
984263bc 82
45a9a2eb
SW
83.for locale in ${LOCALES}
84FILESDIR_${locale}.out= ${LOCALEDIR}/${locale}
984263bc 85.endfor
45a9a2eb
SW
86
87CLEANFILES= ${FILES}
88
89CA_LINKS= ca_ES:ca_AD ca_ES:ca_FR ca_ES:ca_IT
90CZ_LINKS= cs_CZ:sk_SK
91DE_LINKS= de_DE:de_AT de_DE:de_CH
92FR_LINKS= fr_FR:fr_CA
93GB_LINKS= en_GB:en_AU en_GB:en_NZ
94IT_LINKS= it_IT:it_CH
95NL_LINKS= nl_NL:nl_BE
1e77a474 96NO_LINKS= nb_NO:nn_NO
45a9a2eb
SW
97PT_LINKS= pt_PT:pt_BR
98
99ENCODINGS= Big5 Big5HKSCS CP949 eucKR GB2312 GBK \
100 ISO8859-1 ISO8859-2 ISO8859-4 ISO8859-9 ISO8859-13 ISO8859-15 \
101 US-ASCII UTF-8
102
7323e49f 103Big5_Big5HKSCS= zh_Hant_TW:zh_Hant_HK
45a9a2eb 104eucKR_CP949= ko_KR
7323e49f 105GB2312_GBK= zh_Hans_CN
45a9a2eb
SW
106ISO8859-1_ISO8859-1= ${CA_LINKS} ${DE_LINKS} ${FR_LINKS} ${GB_LINKS} \
107 ${IT_LINKS} ${NL_LINKS} ${NO_LINKS} ${PT_LINKS}
108ISO8859-1_ISO8859-15= af_ZA ca_ES da_DK de_DE en_CA en_GB en_US es_ES \
1e77a474 109 eu_ES fi_FI fr_BE fr_CH fr_FR is_IS it_IT nl_NL \
45a9a2eb
SW
110 pt_PT sv_SE \
111 ${CA_LINKS} ${DE_LINKS} ${FR_LINKS} ${GB_LINKS} ${IT_LINKS} \
112 ${NL_LINKS} ${NO_LINKS}
113ISO8859-1_US-ASCII= ${GB_LINKS} en_CA en_GB en_US
114ISO8859-1_UTF-8= af_ZA ca_ES da_DK de_DE en_CA en_GB en_US es_ES eu_ES \
1e77a474 115 fi_FI fr_BE fr_CH fr_FR is_IS it_IT nb_NO nl_NL nn_NO \
45a9a2eb
SW
116 pt_PT sv_SE
117ISO8859-2_ISO8859-2= ${CZ_LINKS}
118ISO8859-2_UTF-8= cs_CZ hr_HR hu_HU pl_PL ro_RO sl_SI
119ISO8859-9_UTF-8= tr_TR
120ISO8859-13_ISO8859-4= lt_LT
121ISO8859-13_UTF-8= lt_LT
122ISO8859-15_UTF-8= et_EE
123UTF-8_UTF-8= ${CA_LINKS} ${CZ_LINKS} ${DE_LINKS} ${FR_LINKS} ${GB_LINKS} \
7323e49f 124 en_GB:en_IE zh_Hant_TW:zh_Hant_HK \
dbf3d3ba 125 ${IT_LINKS} ${NL_LINKS} ${NO_LINKS} ${PT_LINKS}
45a9a2eb
SW
126
127SYMLINKS=
128.for enc1 in ${ENCODINGS}
129.for enc2 in ${ENCODINGS}
130.for lang_terr in ${${enc1}_${enc2}}
131SYMLINKS+= ../${lang_terr:C/:.*$//}.${enc1}/${FILESNAME} \
132 ${LOCALEDIR}/${lang_terr:C/^.*://}.${enc2}
99a5de30 133.endfor
99a5de30 134.endfor
99a5de30 135.endfor
45a9a2eb
SW
136
137beforeinstall:
138.for locale in ${LOCALES}
139.if exists(${DESTDIR}${LOCALEDIR}/${locale}/LC_MESSAGES/)
140 rm -rf ${DESTDIR}${LOCALEDIR}/${locale}/LC_MESSAGES
141.endif
99a5de30 142.endfor
984263bc
MD
143
144.include <bsd.prog.mk>