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