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