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