19e424b4076d23b33e2e76d39db394c77476cb2c
[dragonfly.git] / share / mklocale / Makefile
1 # $FreeBSD: head/share/mklocale/Makefile 196790 2009-09-03 17:12:45Z ache $
2
3 LOCALES=        UTF-8 \
4                 am_ET.UTF-8 \
5                 be_BY.CP1131 \
6                 bg_BG.CP1251 \
7                 el_GR.ISO8859-7 \
8                 hi_IN.ISCII-DEV \
9                 hy_AM.ARMSCII-8 \
10                 ja_JP.SJIS \
11                 ja_JP.eucJP \
12                 kk_KZ.PT154 \
13                 ko_KR.CP949 \
14                 ko_KR.eucKR \
15                 la_LN.ISO8859-1 \
16                 la_LN.ISO8859-13 \
17                 la_LN.ISO8859-15 \
18                 la_LN.ISO8859-2 \
19                 la_LN.ISO8859-4 \
20                 la_LN.US-ASCII \
21                 ru_RU.CP866 \
22                 ru_RU.ISO8859-5 \
23                 ru_RU.KOI8-R \
24                 tr_TR.ISO8859-9 \
25                 uk_UA.KOI8-U \
26                 zh_hans_CN.eucCN \
27                 zh_hans_CN.GB18030 \
28                 zh_hans_CN.GB2312 \
29                 zh_hans_CN.GBK \
30                 zh_hant_HK.Big5HKSCS \
31                 zh_hant_TW.Big5
32
33 LOCALEDIR=      /usr/share/locale
34
35 .SUFFIXES: .src .out
36
37 .src.out:
38         mklocale -o ${.TARGET} ${.IMPSRC}
39
40 FILES=          ${LOCALES:S/$/.out/}
41 FILESNAME=      LC_CTYPE
42
43 .for locale in ${LOCALES}
44 FILESDIR_${locale}.out= ${LOCALEDIR}/${locale}
45 .endfor
46
47 CLEANFILES=     ${FILES}
48
49 ENCODINGS=      CP1251 ISO8859-1 ISO8859-2 ISO8859-4 ISO8859-5 \
50                 ISO8859-13 ISO8859-15 US-ASCII UTF-8
51
52 ASCIILINKS=     en_AU en_CA en_GB en_NZ en_US
53 US-ASCII_US-ASCII= ${ASCIILINKS:C/^/la_LN:/}
54
55 LATIN1XLINKS=   af_ZA ca_AD ca_ES ca_FR ca_IT da_DK de_AT de_CH de_DE \
56                 en_AU en_CA en_GB en_NZ en_US es_ES eu_ES \
57                 fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH \
58                 it_IT nb_NO nl_BE nl_NL nn_NO pt_PT sv_SE
59 LATIN1LINKS=    ${LATIN1XLINKS} pt_BR
60 ISO8859-1_ISO8859-1= ${LATIN1LINKS:C/^/la_LN:/}
61
62 LATIN15LINKS=   ${LATIN1XLINKS} et_EE
63 ISO8859-15_ISO8859-15= ${LATIN15LINKS:C/^/la_LN:/}
64
65 LATIN2LINKS=    cs_CZ hr_HR hu_HU pl_PL sl_SI sr_Latn_RS ro_RO sk_SK
66 ISO8859-2_ISO8859-2= ${LATIN2LINKS:C/^/la_LN:/}
67
68 LATIN4LINKS=    lt_LT
69 ISO8859-4_ISO8859-4= ${LATIN4LINKS:C/^/la_LN:/}
70
71 LATIN5LINKS=    sr_Cyrl_RS uk_UA be_BY
72 ISO8859-5_ISO8859-5= ${LATIN5LINKS:C/^/ru_RU:/}
73
74 LATIN13LINKS=   lt_LT lv_LV
75 ISO8859-13_ISO8859-13= ${LATIN13LINKS:C/^/la_LN:/}
76
77 CP1251LINKS=    ru_RU be_BY uk_UA
78 CP1251_CP1251=  ${CP1251LINKS:C/^/bg_BG:/}
79
80 UTF8LINKS=      af_ZA be_BY bg_BG ca_AD ca_ES ca_FR ca_IT cs_CZ \
81                 da_DK de_AT de_CH de_DE el_GR \
82                 en_AU en_CA en_GB en_IE en_NZ en_US es_ES et_EE eu_ES fi_FI \
83                 fr_BE \
84                 fr_CA fr_CH fr_FR he_IL hr_HR hu_HU hy_AM is_IS it_CH it_IT \
85                 ja_JP kk_KZ ko_KR lt_LT lv_LV mn_Cyrl_MN \
86                 nb_NO nl_BE nl_NL nn_NO pl_PL pt_BR pt_PT \
87                 ro_RO ru_RU sk_SK sl_SI sv_SE tr_TR uk_UA \
88                 sr_Cyrl_RS sr_Latn_RS zh_hans_CN zh_hant_HK zh_hant_TW
89 UTF-8_UTF-8=    ${UTF8LINKS:C/^/:/}
90
91
92 SYMLINKS=
93 .for enc1 in ${ENCODINGS}
94 .for enc2 in ${ENCODINGS}
95 .for lang_terr in ${${enc1}_${enc2}}
96 SYMLINKS+=      ../${lang_terr:C/:.*$//:C/.+$/&./}${enc1}/${FILESNAME} \
97                 ${LOCALEDIR}/${lang_terr:C/^.*://}.${enc2}
98 .endfor
99 .endfor
100 .endfor
101
102 .include <bsd.prog.mk>