1# $FreeBSD: head/share/colldef/Makefile 125208 2004-01-29 16:28:22Z ache $
2#
3
4NOMAN=YES
5CLEANFILES+= ${LOCALES:S/$/.out/g}
6
7LOCALES= bg_BG.CP1251 \
8 be_BY.CP1131 \
9 be_BY.CP1251 \
10 be_BY.ISO8859-5 \
11 ca_ES.ISO8859-1 \
12 ca_ES.ISO8859-15 \
13 cs_CZ.ISO8859-2 \
14 de_DE.ISO8859-1 \
15 de_DE.ISO8859-15 \
16 el_GR.ISO8859-7 \
17 es_ES.ISO8859-1 \
18 es_ES.ISO8859-15 \
19 et_EE.ISO8859-15 \
20 hi_IN.ISCII-DEV \
21 hy_AM.ARMSCII-8 \
22 is_IS.ISO8859-1 \
23 is_IS.ISO8859-15 \
24 kk_KZ.PT154 \
25 la_LN.ISO8859-1 \
26 la_LN.ISO8859-15 \
27 la_LN.ISO8859-2 \
28 la_LN.ISO8859-4 \
29 la_LN.US-ASCII \
30 lt_LT.ISO8859-4 \
31 lt_LT.ISO8859-13 \
32 pl_PL.ISO8859-2 \
33 ru_RU.CP1251 \
34 ru_RU.CP866 \
35 ru_RU.ISO8859-5 \
36 ru_RU.KOI8-R \
37 sl_SI.ISO8859-2 \
38 sr_YU.ISO8859-5 \
39 sv_SE.ISO8859-1 \
40 sv_SE.ISO8859-15 \
41 uk_UA.ISO8859-5 \
42 uk_UA.KOI8-U
43
44LOCALEDIR= ${DESTDIR}/usr/share/locale
45
46ASCIILINKS= am_ET.UTF-8 en_AU.US-ASCII en_CA.US-ASCII en_GB.US-ASCII \
47 en_NZ.US-ASCII en_US.US-ASCII ko_KR.CP949 ko_KR.eucKR \
48 ja_JP.eucJP ja_JP.SJIS tr_TR.ISO8859-9 zh_CN.eucCN \
49 zh_CN.GB18030 zh_CN.GB2312 zh_CN.GBK
50DELINKS= de_AT de_CH
51ZHLINKS= zh_TW.Big5
52
53LATIN1LINKS= af_ZA da_DK en_AU en_CA en_GB en_NZ en_US fi_FI \
54 fr_BE fr_CA fr_CH fr_FR it_CH it_IT nl_BE nl_NL no_NO \
55 pt_PT
56
57LATIN2LINKS= hr_HR hu_HU ro_RO sr_YU
58
59.SUFFIXES: .src .out
60
61.src.out:
62 colldef -I ${.CURDIR} -o ${.TARGET} ${.IMPSRC}
63
64all: ${LOCALES:S/$/.out/g}
65
66be_BY.CP1131.out: map.CP1131
67be_BY.CP1251.out: map.CP1251
68be_BY.ISO8859-5.out: map.ISO8859-5
69bg_BG.CP1251.out: map.CP1251
70ca_ES.ISO8859-15.out: map.ISO8859-15
71ca_ES.ISO8859-1.out: map.ISO8859-1
72cs_CZ.ISO8859-2.out: map.ISO8859-2
73de_DE.ISO8859-15.out: map.ISO8859-15
74de_DE.ISO8859-1.out: map.ISO8859-1
75el_GR.ISO8859-7.out: map.ISO8859-7
76es_ES.ISO8859-15.out: map.ISO8859-15
77es_ES.ISO8859-1.out: map.ISO8859-1
78et_EE.ISO8859-15.out: map.ISO8859-15
79hi_IN.ISCII-DEV.out: map.ISCII-DEV
80hy_AM.ARMSCII-8.out: map.ARMSCII-8
81is_IS.ISO8859-15.out: map.ISO8859-15
82is_IS.ISO8859-1.out: map.ISO8859-1
83kk_KZ.PT154.out: map.PT154
84la_LN.ISO8859-15.out: map.ISO8859-15
85la_LN.ISO8859-1.out: map.ISO8859-1
86la_LN.ISO8859-2.out: map.ISO8859-2
87la_LN.ISO8859-4.out: map.ISO8859-4
88lt_LT.ISO8859-4.out: map.ISO8859-4
89lt_LT.ISO8859-13.out: map.ISO8859-13
90pl_PL.ISO8859-2.out: map.ISO8859-2
91ru_RU.CP1251.out: map.CP1251
92ru_RU.CP866.out: map.CP866
93ru_RU.ISO8859-5.out: map.ISO8859-5
94ru_RU.KOI8-R.out: map.KOI8-R
95sl_SI.ISO8859-2.out: map.ISO8859-2
96sr_YU.ISO8859-5.out: map.ISO8859-5
97sv_SE.ISO8859-15.out: map.ISO8859-15
98sv_SE.ISO8859-1.out: map.ISO8859-1
99uk_UA.ISO8859-5.out: map.ISO8859-5
100uk_UA.KOI8-U.out: map.KOI8-U
101
102afterinstall:
103.for locale in ${LOCALES}
104 ${INSTALL} -m 644 -o ${BINOWN} -g ${BINGRP} \
105 ${locale}.out ${LOCALEDIR}/${locale}/LC_COLLATE
106.endfor
107.for link in ${ASCIILINKS}
108 ln -fs ../la_LN.US-ASCII/LC_COLLATE \
109 ${LOCALEDIR}/${link}/LC_COLLATE
110.endfor
111.for link in ${ZHLINKS}
112 ln -fs ../is_IS.ISO8859-1/LC_COLLATE \
113 ${LOCALEDIR}/${link}/LC_COLLATE
114.endfor
115.for link in ${LATIN1LINKS}
116 ln -fs ../la_LN.ISO8859-1/LC_COLLATE \
117 ${LOCALEDIR}/${link}.ISO8859-1/LC_COLLATE
118 ln -fs ../la_LN.ISO8859-15/LC_COLLATE \
119 ${LOCALEDIR}/${link}.ISO8859-15/LC_COLLATE
120.endfor
121.for link in ${LATIN2LINKS}
122 ln -fs ../la_LN.ISO8859-2/LC_COLLATE \
123 ${LOCALEDIR}/${link}.ISO8859-2/LC_COLLATE
124.endfor
125.for link in ${DELINKS}
126 ln -fs ../de_DE.ISO8859-1/LC_COLLATE \
127 ${LOCALEDIR}/${link}.ISO8859-1/LC_COLLATE
128 ln -fs ../de_DE.ISO8859-15/LC_COLLATE \
129 ${LOCALEDIR}/${link}.ISO8859-15/LC_COLLATE
130.endfor
131 ln -fs ../cs_CZ.ISO8859-2/LC_COLLATE \
132 ${LOCALEDIR}/sk_SK.ISO8859-2/LC_COLLATE
133 ln -fs ../pt_PT.ISO8859-1/LC_COLLATE \
134 ${LOCALEDIR}/pt_BR.ISO8859-1/LC_COLLATE
135
136.include <bsd.prog.mk>
2#
3
4NOMAN=YES
5CLEANFILES+= ${LOCALES:S/$/.out/g}
6
7LOCALES= bg_BG.CP1251 \
8 be_BY.CP1131 \
9 be_BY.CP1251 \
10 be_BY.ISO8859-5 \
11 ca_ES.ISO8859-1 \
12 ca_ES.ISO8859-15 \
13 cs_CZ.ISO8859-2 \
14 de_DE.ISO8859-1 \
15 de_DE.ISO8859-15 \
16 el_GR.ISO8859-7 \
17 es_ES.ISO8859-1 \
18 es_ES.ISO8859-15 \
19 et_EE.ISO8859-15 \
20 hi_IN.ISCII-DEV \
21 hy_AM.ARMSCII-8 \
22 is_IS.ISO8859-1 \
23 is_IS.ISO8859-15 \
24 kk_KZ.PT154 \
25 la_LN.ISO8859-1 \
26 la_LN.ISO8859-15 \
27 la_LN.ISO8859-2 \
28 la_LN.ISO8859-4 \
29 la_LN.US-ASCII \
30 lt_LT.ISO8859-4 \
31 lt_LT.ISO8859-13 \
32 pl_PL.ISO8859-2 \
33 ru_RU.CP1251 \
34 ru_RU.CP866 \
35 ru_RU.ISO8859-5 \
36 ru_RU.KOI8-R \
37 sl_SI.ISO8859-2 \
38 sr_YU.ISO8859-5 \
39 sv_SE.ISO8859-1 \
40 sv_SE.ISO8859-15 \
41 uk_UA.ISO8859-5 \
42 uk_UA.KOI8-U
43
44LOCALEDIR= ${DESTDIR}/usr/share/locale
45
46ASCIILINKS= am_ET.UTF-8 en_AU.US-ASCII en_CA.US-ASCII en_GB.US-ASCII \
47 en_NZ.US-ASCII en_US.US-ASCII ko_KR.CP949 ko_KR.eucKR \
48 ja_JP.eucJP ja_JP.SJIS tr_TR.ISO8859-9 zh_CN.eucCN \
49 zh_CN.GB18030 zh_CN.GB2312 zh_CN.GBK
50DELINKS= de_AT de_CH
51ZHLINKS= zh_TW.Big5
52
53LATIN1LINKS= af_ZA da_DK en_AU en_CA en_GB en_NZ en_US fi_FI \
54 fr_BE fr_CA fr_CH fr_FR it_CH it_IT nl_BE nl_NL no_NO \
55 pt_PT
56
57LATIN2LINKS= hr_HR hu_HU ro_RO sr_YU
58
59.SUFFIXES: .src .out
60
61.src.out:
62 colldef -I ${.CURDIR} -o ${.TARGET} ${.IMPSRC}
63
64all: ${LOCALES:S/$/.out/g}
65
66be_BY.CP1131.out: map.CP1131
67be_BY.CP1251.out: map.CP1251
68be_BY.ISO8859-5.out: map.ISO8859-5
69bg_BG.CP1251.out: map.CP1251
70ca_ES.ISO8859-15.out: map.ISO8859-15
71ca_ES.ISO8859-1.out: map.ISO8859-1
72cs_CZ.ISO8859-2.out: map.ISO8859-2
73de_DE.ISO8859-15.out: map.ISO8859-15
74de_DE.ISO8859-1.out: map.ISO8859-1
75el_GR.ISO8859-7.out: map.ISO8859-7
76es_ES.ISO8859-15.out: map.ISO8859-15
77es_ES.ISO8859-1.out: map.ISO8859-1
78et_EE.ISO8859-15.out: map.ISO8859-15
79hi_IN.ISCII-DEV.out: map.ISCII-DEV
80hy_AM.ARMSCII-8.out: map.ARMSCII-8
81is_IS.ISO8859-15.out: map.ISO8859-15
82is_IS.ISO8859-1.out: map.ISO8859-1
83kk_KZ.PT154.out: map.PT154
84la_LN.ISO8859-15.out: map.ISO8859-15
85la_LN.ISO8859-1.out: map.ISO8859-1
86la_LN.ISO8859-2.out: map.ISO8859-2
87la_LN.ISO8859-4.out: map.ISO8859-4
88lt_LT.ISO8859-4.out: map.ISO8859-4
89lt_LT.ISO8859-13.out: map.ISO8859-13
90pl_PL.ISO8859-2.out: map.ISO8859-2
91ru_RU.CP1251.out: map.CP1251
92ru_RU.CP866.out: map.CP866
93ru_RU.ISO8859-5.out: map.ISO8859-5
94ru_RU.KOI8-R.out: map.KOI8-R
95sl_SI.ISO8859-2.out: map.ISO8859-2
96sr_YU.ISO8859-5.out: map.ISO8859-5
97sv_SE.ISO8859-15.out: map.ISO8859-15
98sv_SE.ISO8859-1.out: map.ISO8859-1
99uk_UA.ISO8859-5.out: map.ISO8859-5
100uk_UA.KOI8-U.out: map.KOI8-U
101
102afterinstall:
103.for locale in ${LOCALES}
104 ${INSTALL} -m 644 -o ${BINOWN} -g ${BINGRP} \
105 ${locale}.out ${LOCALEDIR}/${locale}/LC_COLLATE
106.endfor
107.for link in ${ASCIILINKS}
108 ln -fs ../la_LN.US-ASCII/LC_COLLATE \
109 ${LOCALEDIR}/${link}/LC_COLLATE
110.endfor
111.for link in ${ZHLINKS}
112 ln -fs ../is_IS.ISO8859-1/LC_COLLATE \
113 ${LOCALEDIR}/${link}/LC_COLLATE
114.endfor
115.for link in ${LATIN1LINKS}
116 ln -fs ../la_LN.ISO8859-1/LC_COLLATE \
117 ${LOCALEDIR}/${link}.ISO8859-1/LC_COLLATE
118 ln -fs ../la_LN.ISO8859-15/LC_COLLATE \
119 ${LOCALEDIR}/${link}.ISO8859-15/LC_COLLATE
120.endfor
121.for link in ${LATIN2LINKS}
122 ln -fs ../la_LN.ISO8859-2/LC_COLLATE \
123 ${LOCALEDIR}/${link}.ISO8859-2/LC_COLLATE
124.endfor
125.for link in ${DELINKS}
126 ln -fs ../de_DE.ISO8859-1/LC_COLLATE \
127 ${LOCALEDIR}/${link}.ISO8859-1/LC_COLLATE
128 ln -fs ../de_DE.ISO8859-15/LC_COLLATE \
129 ${LOCALEDIR}/${link}.ISO8859-15/LC_COLLATE
130.endfor
131 ln -fs ../cs_CZ.ISO8859-2/LC_COLLATE \
132 ${LOCALEDIR}/sk_SK.ISO8859-2/LC_COLLATE
133 ln -fs ../pt_PT.ISO8859-1/LC_COLLATE \
134 ${LOCALEDIR}/pt_BR.ISO8859-1/LC_COLLATE
135
136.include <bsd.prog.mk>