xref: /freebsd/share/colldef/Makefile (revision aa0a1e58f0189b0fde359a8bda032887e72057fa)
1# $FreeBSD$
2
3LOCALES=	bg_BG.CP1251 \
4		be_BY.CP1131 \
5		be_BY.CP1251 \
6		be_BY.ISO8859-5 \
7		ca_ES.ISO8859-1 \
8		ca_ES.ISO8859-15 \
9		cs_CZ.ISO8859-2 \
10		de_DE.ISO8859-1 \
11		de_DE.ISO8859-15 \
12		el_GR.ISO8859-7 \
13		es_ES.ISO8859-1 \
14		es_ES.ISO8859-15 \
15		et_EE.ISO8859-15 \
16		hi_IN.ISCII-DEV \
17		hr_HR.ISO8859-2 \
18		hy_AM.ARMSCII-8 \
19		is_IS.ISO8859-1 \
20		is_IS.ISO8859-15 \
21		kk_KZ.PT154 \
22		la_LN.ISO8859-1 \
23		la_LN.ISO8859-13 \
24		la_LN.ISO8859-15 \
25		la_LN.ISO8859-2 \
26		la_LN.ISO8859-4 \
27		la_LN.US-ASCII \
28		no_NO.ISO8859-1 \
29		no_NO.ISO8859-15 \
30		lt_LT.ISO8859-4 \
31		pl_PL.ISO8859-2 \
32		ru_RU.CP1251 \
33		ru_RU.CP866 \
34		ru_RU.ISO8859-5 \
35		ru_RU.KOI8-R \
36		sl_SI.ISO8859-2 \
37		sr_YU.ISO8859-5 \
38		sv_SE.ISO8859-1 \
39		sv_SE.ISO8859-15 \
40		tr_TR.ISO8859-9 \
41		uk_UA.CP1251 \
42		uk_UA.ISO8859-5 \
43		uk_UA.KOI8-U
44
45LOCALEDIR=	/usr/share/locale
46
47.SUFFIXES: .src .out
48
49.src.out:
50	colldef -I ${.CURDIR} -o ${.TARGET} ${.IMPSRC}
51
52FILES=		${LOCALES:S/$/.out/}
53FILESNAME=	LC_COLLATE
54
55.for locale in ${LOCALES}
56FILESDIR_${locale}.out= ${LOCALEDIR}/${locale}
57.if exists(${.CURDIR}/map.${locale:E})
58${locale}.out: map.${locale:E}
59.endif
60.endfor
61
62CLEANFILES=	${FILES}
63
64ENCODINGS=	Big5 Big5HKSCS CP949 eucCN eucJP eucKR GB18030 GB2312 GBK \
65		ISO8859-1 ISO8859-2 ISO8859-13 ISO8859-15 SJIS US-ASCII UTF-8
66
67ISO8859-1_Big5=	is_IS:zh_TW
68ISO8859-1_ISO8859-1= ${ISO8859-15_ISO8859-15} pt_PT:pt_BR
69
70LATIN1LINKS=	af_ZA da_DK en_AU en_CA en_GB en_NZ en_US eu_ES fi_FI \
71		fr_BE fr_CA fr_CH fr_FR it_CH it_IT nl_BE nl_NL pt_PT
72ISO8859-15_ISO8859-15= \
73	ca_ES:ca_AD ca_ES:ca_FR ca_ES:ca_IT \
74	de_DE:de_AT de_DE:de_CH \
75	no_NO:nb_NO no_NO:nn_NO \
76	${LATIN1LINKS:C/^/la_LN:/}
77
78LATIN2LINKS=    hu_HU ro_RO sr_YU
79ISO8859-2_ISO8859-2= ${LATIN2LINKS:C/^/la_LN:/} cs_CZ:sk_SK
80
81LATIN13LINKS=	lt_LT lv_LV
82ISO8859-13_ISO8859-13= ${LATIN13LINKS:C/^/la_LN:/}
83
84US-ASCII_Big5HKSCS= la_LN:zh_HK
85US-ASCII_CP949=	la_LN:ko_KR
86US-ASCII_eucCN=	la_LN:zh_CN
87US-ASCII_eucJP=	la_LN:ja_JP
88US-ASCII_eucKR=	la_LN:ko_KR
89US-ASCII_GB18030= la_LN:zh_CN
90US-ASCII_GB2312= la_LN:zh_CN
91US-ASCII_GBK=	la_LN:zh_CN
92US-ASCII_SJIS=	la_LN:ja_JP
93
94ASCIILINKS=	en_AU en_CA en_GB en_NZ en_US
95US-ASCII_US-ASCII= ${ASCIILINKS:C/^/la_LN:/}
96
97UTF8LINKS=	af_ZA am_ET be_BY bg_BG ca_AD ca_ES ca_FR ca_IT cs_CZ \
98		da_DK de_AT de_CH de_DE \
99		el_GR en_AU en_CA en_GB en_IE en_NZ en_US es_ES et_EE eu_ES \
100		fi_FI fr_BE fr_CA fr_CH fr_FR he_IL hr_HR hu_HU hy_AM \
101		is_IS it_CH it_IT ja_JP kk_KZ ko_KR lt_LT lv_LV mn_MN \
102		nb_NO nl_BE nl_NL nn_NO no_NO pl_PL pt_BR pt_PT \
103		ro_RO ru_RU sk_SK sl_SI sr_YU sv_SE tr_TR uk_UA zh_CN zh_HK \
104		zh_TW
105US-ASCII_UTF-8=	${UTF8LINKS:C/^/la_LN:/}
106
107SYMLINKS=
108.for enc1 in ${ENCODINGS}
109.for enc2 in ${ENCODINGS}
110.for lang_terr in ${${enc1}_${enc2}}
111SYMLINKS+=	../${lang_terr:C/:.*$//}.${enc1}/${FILESNAME} \
112		${LOCALEDIR}/${lang_terr:C/^.*://}.${enc2}
113.endfor
114.endfor
115.endfor
116
117.include <bsd.prog.mk>
118