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