1 # $FreeBSD: src/share/msgdef/Makefile,v 1.38.2.3 2002/08/17 19:30:37 ache Exp $
2 # $DragonFly: src/share/msgdef/Makefile,v 1.7 2006/11/12 21:15:46 swildner Exp $
5 CLEANFILES
+= ${LOCALES
:S
/$/.out
/g
}
7 LOCALES
= af_ZA.ISO8859-1 \
61 LOCALEDIR
= ${DESTDIR}/usr
/share
/locale
63 ASCIILINKS
= en_CA en_GB en_US
64 LATIN15LINKS
= af_ZA da_DK de_DE en_CA en_GB en_US es_ES fi_FI fr_BE fr_CH \
65 fr_FR is_IS it_IT nl_NL no_NO pt_PT sv_SE
67 UTF8_LATIN1LINKS
= af_ZA ca_ES da_DK de_DE en_CA en_GB en_US es_ES fi_FI \
68 fr_BE fr_CH fr_FR is_IS it_IT nl_NL no_NO pt_PT sv_SE
69 UTF8_LATIN2LINKS
= cs_CZ hr_HR hu_HU pl_PL ro_RO sl_SI
70 UTF8_LATIN9LINKS
= tr_TR
71 UTF8_LATIN13LINKS
= lt_LT
72 UTF8_LATIN15LINKS
= et_EE
86 grep
-v
'^#' < ${.IMPSRC
} > ${.TARGET
}
88 all: ${LOCALES
:S
/$/.out
/g
}
91 # HACK: remove LC_MESSAGES directories before installing LC_MESSAGES file
92 -rm -rf
${LOCALEDIR}/*/LC_MESSAGES
93 .for lang in
${LOCALES}
94 ${INSTALL} -m
644 -o
${BINOWN} -g
${BINGRP} ${lang}.out \
95 ${LOCALEDIR}/${lang}/LC_MESSAGES
97 .for link in
${LATIN15LINKS}
98 ${LN} -sf ..
/${link}.ISO8859-1
/LC_MESSAGES \
99 ${LOCALEDIR}/${link}.ISO8859-15
/LC_MESSAGES
101 .for link in
${GB_LINKS}
102 ${LN} -sf ..
/en_GB.ISO8859-1
/LC_MESSAGES \
103 ${LOCALEDIR}/${link}.ISO8859-1
/LC_MESSAGES
104 ${LN} -sf ..
/en_GB.ISO8859-1
/LC_MESSAGES \
105 ${LOCALEDIR}/${link}.ISO8859-15
/LC_MESSAGES
106 ${LN} -sf ..
/en_GB.ISO8859-1
/LC_MESSAGES \
107 ${LOCALEDIR}/${link}.US-ASCII
/LC_MESSAGES
109 .for link in
${FR_LINKS}
110 ${LN} -sf ..
/fr_FR.ISO8859-1
/LC_MESSAGES \
111 ${LOCALEDIR}/${link}.ISO8859-1
/LC_MESSAGES
112 ${LN} -sf ..
/fr_FR.ISO8859-1
/LC_MESSAGES \
113 ${LOCALEDIR}/${link}.ISO8859-15
/LC_MESSAGES
115 .for link in
${DE_LINKS}
116 ${LN} -sf ..
/de_DE.ISO8859-1
/LC_MESSAGES \
117 ${LOCALEDIR}/${link}.ISO8859-1
/LC_MESSAGES
118 ${LN} -sf ..
/de_DE.ISO8859-1
/LC_MESSAGES \
119 ${LOCALEDIR}/${link}.ISO8859-15
/LC_MESSAGES
121 .for link in
${IT_LINKS}
122 ${LN} -sf ..
/it_IT.ISO8859-1
/LC_MESSAGES \
123 ${LOCALEDIR}/${link}.ISO8859-1
/LC_MESSAGES
124 ${LN} -sf ..
/it_IT.ISO8859-1
/LC_MESSAGES \
125 ${LOCALEDIR}/${link}.ISO8859-15
/LC_MESSAGES
127 .for link in
${NL_LINKS}
128 ${LN} -sf ..
/nl_NL.ISO8859-1
/LC_MESSAGES \
129 ${LOCALEDIR}/${link}.ISO8859-1
/LC_MESSAGES
130 ${LN} -sf ..
/nl_NL.ISO8859-1
/LC_MESSAGES \
131 ${LOCALEDIR}/${link}.ISO8859-15
/LC_MESSAGES
133 .for link in
${CZ_LINKS}
134 ${LN} -sf ..
/cs_CZ.ISO8859-2
/LC_MESSAGES \
135 ${LOCALEDIR}/${link}.ISO8859-2
/LC_MESSAGES
137 .for link in
${PT_LINKS}
138 ${LN} -sf ..
/pt_PT.ISO8859-1
/LC_MESSAGES \
139 ${LOCALEDIR}/${link}.ISO8859-1
/LC_MESSAGES
141 .for link in
${ASCIILINKS}
142 ${LN} -sf ..
/${link}.ISO8859-1
/LC_MESSAGES \
143 ${LOCALEDIR}/${link}.US-ASCII
/LC_MESSAGES
145 .for link in
${UTF8_LATIN1LINKS}
146 ${LN} -sf ..
/${link}.ISO8859-1
/LC_MESSAGES \
147 ${LOCALEDIR}/${link}.UTF-8
/LC_MESSAGES
149 .for link in
${UTF8_LATIN2LINKS}
150 ${LN} -sf ..
/${link}.ISO8859-2
/LC_MESSAGES \
151 ${LOCALEDIR}/${link}.UTF-8
/LC_MESSAGES
153 .for link in
${UTF8_LATIN9LINKS}
154 ${LN} -sf ..
/${link}.ISO8859-9
/LC_MESSAGES \
155 ${LOCALEDIR}/${link}.UTF-8
/LC_MESSAGES
157 .for link in
${UTF8_LATIN13LINKS}
158 ${LN} -sf ..
/${link}.ISO8859-13
/LC_MESSAGES \
159 ${LOCALEDIR}/${link}.UTF-8
/LC_MESSAGES
161 .for link in
${UTF8_LATIN15LINKS}
162 ${LN} -sf ..
/${link}.ISO8859-15
/LC_MESSAGES \
163 ${LOCALEDIR}/${link}.UTF-8
/LC_MESSAGES
165 .for link in
${GB_LINKS}
166 ${LN} -sf ..
/en_GB.UTF-8
/LC_MESSAGES \
167 ${LOCALEDIR}/${link}.UTF-8
/LC_MESSAGES
169 .for link in
${FR_LINKS}
170 ${LN} -sf ..
/fr_FR.UTF-8
/LC_MESSAGES \
171 ${LOCALEDIR}/${link}.UTF-8
/LC_MESSAGES
173 .for link in
${DE_LINKS}
174 ${LN} -sf ..
/de_DE.UTF-8
/LC_MESSAGES \
175 ${LOCALEDIR}/${link}.UTF-8
/LC_MESSAGES
177 .for link in
${IT_LINKS}
178 ${LN} -sf ..
/it_IT.UTF-8
/LC_MESSAGES \
179 ${LOCALEDIR}/${link}.UTF-8
/LC_MESSAGES
181 .for link in
${NL_LINKS}
182 ${LN} -sf ..
/nl_NL.UTF-8
/LC_MESSAGES \
183 ${LOCALEDIR}/${link}.UTF-8
/LC_MESSAGES
185 .for link in
${CZ_LINKS}
186 ${LN} -sf ..
/cs_CZ.UTF-8
/LC_MESSAGES \
187 ${LOCALEDIR}/${link}.UTF-8
/LC_MESSAGES
189 .for link in
${PT_LINKS}
190 ${LN} -sf ..
/pt_PT.UTF-8
/LC_MESSAGES \
191 ${LOCALEDIR}/${link}.UTF-8
/LC_MESSAGES
193 ${LN} -sf ..
/ko_KR.eucKR
/LC_MESSAGES \
194 ${LOCALEDIR}/ko_KR.UTF-8
/LC_MESSAGES
195 ${LN} -sf ..
/zh_TW.UTF-8
/LC_MESSAGES \
196 ${LOCALEDIR}/zh_HK.UTF-8
/LC_MESSAGES
198 .
include <bsd.prog.mk
>