xref: /freebsd/share/numericdef/Makefile (revision 18242d3b09dbc3f5e278e39baaa3c3b76624c901)
1# $FreeBSD$
2
3LOCALES=	af_ZA.ISO8859-1 \
4		am_ET.UTF-8 \
5		be_BY.CP1251 \
6		bg_BG.CP1251 \
7		ca_ES.ISO8859-1 \
8		cs_CZ.ISO8859-2 \
9		da_DK.ISO8859-1 \
10		de_DE.ISO8859-1 \
11		el_GR.ISO8859-7 \
12		en_US.ISO8859-1 \
13		es_ES.ISO8859-1 \
14		et_EE.ISO8859-15 \
15		eu_ES.ISO8859-1 \
16		fi_FI.ISO8859-1 \
17		fr_BE.ISO8859-1 \
18		fr_FR.ISO8859-1 \
19		hi_IN.ISCII-DEV \
20		hr_HR.ISO8859-2 \
21		hu_HU.ISO8859-2 \
22		hy_AM.ARMSCII-8 \
23		is_IS.ISO8859-1 \
24		it_IT.ISO8859-1 \
25		ja_JP.eucJP \
26		kk_KZ.PT154 \
27		ko_KR.eucKR \
28		lt_LT.ISO8859-13 \
29		mn_MN.UTF-8 \
30		nl_NL.ISO8859-1 \
31		no_NO.ISO8859-1 \
32		pl_PL.ISO8859-2 \
33		pt_BR.ISO8859-1 \
34		pt_PT.ISO8859-1 \
35		ro_RO.ISO8859-2 \
36		ru_RU.KOI8-R \
37		sk_SK.ISO8859-2 \
38		sl_SI.ISO8859-2 \
39		sr_YU.ISO8859-2 \
40		sr_YU.ISO8859-5 \
41		sv_SE.ISO8859-1 \
42		tr_TR.ISO8859-9 \
43		uk_UA.KOI8-U \
44		zh_CN.eucCN
45
46LOCALEDIR=	/usr/share/locale
47
48.SUFFIXES: .src .out
49
50.src.out:
51	grep -v '^#' < ${.IMPSRC} > ${.TARGET}
52
53FILES=		${LOCALES:S/$/.out/}
54FILESNAME=	LC_NUMERIC
55
56.for locale in ${LOCALES}
57FILESDIR_${locale}.out= ${LOCALEDIR}/${locale}
58.endfor
59
60CLEANFILES=	${FILES}
61
62ENCODINGS=	ARMSCII-8 Big5 Big5HKSCS \
63		CP1131 CP1251 CP866 CP949 \
64		eucCN eucJP eucKR GB18030 GB2312 GBK \
65		ISO8859-1 ISO8859-2 ISO8859-4 ISO8859-5 ISO8859-7 ISO8859-9 \
66		ISO8859-13 ISO8859-15 \
67		KOI8-R KOI8-U PT154 SJIS US-ASCII UTF-8
68
69BE_LINKS=	fr_BE:nl_BE
70DE_LINKS=	de_DE:de_AT de_DE:de_CH
71FR_LINKS=	fr_FR:fr_CA fr_FR:fr_CH
72GB_LINKS=	en_GB:en_AU en_GB:en_NZ
73IT_LINKS=	it_IT:it_CH
74NO_LINKS=	no_NO:nb_NO no_NO:nn_NO
75US_LINKS=	en_US:en_CA en_US:en_GB
76
77ARMSCII-8_UTF-8= hy_AM
78Big5_UTF-8=	zh_TW:zh_HK zh_TW
79CP1251_CP1131=	be_BY
80CP1251_ISO8859-5= be_BY
81CP1251_UTF-8=	be_BY bg_BG
82CP866_UTF-8=	ru_RU
83eucCN_Big5=	zh_CN:zh_TW
84eucCN_Big5HKSCS= zh_CN:zh_HK
85eucCN_GB18030=	zh_CN
86eucCN_GB2312=	zh_CN
87eucCN_GBK=	zh_CN
88eucCN_UTF-8=	zh_CN
89eucJP_SJIS=	ja_JP
90eucJP_UTF-8=	ja_JP
91eucKR_CP949=	ko_KR
92eucKR_UTF-8=	ko_KR
93ISO8859-1_ISO8859-15= af_ZA ca_ES da_DK de_DE en_US es_ES eu_ES fi_FI \
94		fr_BE fr_FR is_IS it_CH it_IT nl_NL no_NO pt_PT sv_SE \
95		${BE_LINKS} ${DE_LINKS} ${FR_LINKS} ${GB_LINKS} \
96		${IT_LINKS} ${NO_LINKS} ${US_LINKS}
97ISO8859-1_ISO8859-1= ${BE_LINKS} ${DE_LINKS} ${FR_LINKS} ${GB_LINKS} \
98		${IT_LINKS} ${NO_LINKS} ${US_LINKS}
99ISO8859-1_US-ASCII= en_US ${GB_LINKS} ${US_LINKS}
100ISO8859-1_UTF-8= af_ZA ca_ES da_DK de_DE en_US es_ES eu_ES fi_FI fr_BE \
101		fr_FR is_IS it_IT nl_NL no_NO pt_BR pt_PT sv_SE
102ISO8859-2_UTF-8= cs_CZ hr_HR hu_HU pl_PL ro_RO sk_SK sl_SI
103ISO8859-5_UTF-8= sr_YU uk_UA
104ISO8859-5_CP1251= uk_UA
105ISO8859-7_UTF-8= el_GR
106ISO8859-9_UTF-8= tr_TR
107ISO8859-13_ISO8859-4= lt_LT
108ISO8859-13_UTF-8= lt_LT
109ISO8859-15_UTF-8= et_EE
110KOI8-R_CP1251=	ru_RU
111KOI8-R_CP866=	ru_RU
112KOI8-R_ISO8859-5= ru_RU
113KOI8-U_ISO8859-5= uk_UA
114PT154_UTF-8=	kk_KZ
115US-ASCII_UTF-8=	en_US:he_IL
116UTF-8_UTF-8=	${BE_LINKS} ${DE_LINKS} ${FR_LINKS} ${GB_LINKS} en_GB:en_IE \
117		${IT_LINKS} ${NO_LINKS} ${US_LINKS}
118
119SYMLINKS=
120.for enc1 in ${ENCODINGS}
121.for enc2 in ${ENCODINGS}
122.for lang_terr in ${${enc1}_${enc2}}
123SYMLINKS+=	../${lang_terr:C/:.*$//}.${enc1}/${FILESNAME} \
124		${LOCALEDIR}/${lang_terr:C/^.*://}.${enc2}
125.endfor
126.endfor
127.endfor
128
129.include <bsd.prog.mk>
130