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