xref: /freebsd/share/msgdef/Makefile (revision 8fa113e5fc65fe6abc757f0089f477a87ee4d185)
1# $FreeBSD$
2
3NOMAN=YES
4CLEANFILES+= ${LOCALES:S/$/.out/g}
5
6LOCALES=        af_ZA.ISO8859-1 \
7		bg_BG.CP1251 \
8		cs_CZ.ISO8859-2 \
9		da_DK.ISO8859-1 \
10		de_DE.ISO8859-1 \
11		el_GR.ISO8859-7 \
12		en_CA.ISO8859-1 \
13		en_GB.ISO8859-1 \
14		en_US.ISO8859-1 \
15		es_ES.ISO8859-1 \
16		et_EE.ISO8859-15 \
17		fi_FI.ISO8859-1 \
18		fr_CH.ISO8859-1 \
19		fr_FR.ISO8859-1 \
20		hi_IN.ISCII-DEV \
21		hr_HR.ISO8859-2 \
22		hu_HU.ISO8859-2 \
23		is_IS.ISO8859-1 \
24		it_IT.ISO8859-1 \
25		nl_NL.ISO8859-1 \
26		no_NO.ISO8859-1 \
27		pl_PL.ISO8859-2 \
28		pt_PT.ISO8859-1 \
29		ru_RU.CP866 \
30		ru_RU.ISO8859-5 \
31		ru_RU.KOI8-R \
32		sl_SI.ISO8859-2 \
33		sv_SE.ISO8859-1 \
34		tr_TR.ISO8859-9 \
35		uk_UA.KOI8-U \
36		ko_KR.eucKR \
37		ja_JP.eucJP \
38		zh_TW.Big5 \
39		zh_CN.eucCN
40
41ASCIILINKS =    en_CA en_GB en_US
428859_15_LINKS = af_ZA da_DK de_DE en_CA en_GB en_US es_ES fi_FI fr_CH \
43		fr_FR is_IS is_IS it_IT nl_NL no_NO pt_PT sv_SE
44
45ENGLISH=        en_GB
46ENGLISHLINKS=   en_AU en_NZ
47FRENCH=         fr_FR
48FRENCHLINKS=    fr_CA
49GERMAN=         de_DE
50GERMANLINKS=    de_AT
51CZECH=          cs_CZ
52CZECHLINKS=     sk_SK
53
54LOCALEDIR=      ${DESTDIR}/usr/share/locale
55
56.SUFFIXES: .src .out
57
58.src.out:
59	grep -v '^#' < ${.IMPSRC} > ${.TARGET}
60
61all: ${LOCALES:S/$/.out/g}
62
63afterinstall:
64.for lang in ${LOCALES}
65	${INSTALL} ${COPY} -m 644 -o ${BINOWN} -g ${BINGRP} ${lang}.out \
66			   ${LOCALEDIR}/${lang}/LC_MESSAGES
67.endfor
68.for link in ${8859_15_LINKS}
69	ln -sf ../${link}.ISO8859-1/LC_MESSAGES \
70	       ${LOCALEDIR}/${link}.ISO8859-15/LC_MESSAGES
71.endfor
72.for link in ${ENGLISHLINKS}
73	ln -sf ../${ENGLISH}.ISO8859-1/LC_MESSAGES \
74		${LOCALEDIR}/${link}.ISO8859-1/LC_MESSAGES
75	ln -sf ../${ENGLISH}.ISO8859-1/LC_MESSAGES \
76		${LOCALEDIR}/${link}.ISO8859-15/LC_MESSAGES
77	ln -sf ../${ENGLISH}.ISO8859-1/LC_MESSAGES \
78		${LOCALEDIR}/${link}.US-ASCII/LC_MESSAGES
79.endfor
80.for link in ${FRENCHLINKS}
81	ln -sf ../${FRENCH}.ISO8859-1/LC_MESSAGES \
82		${LOCALEDIR}/${link}.ISO8859-1/LC_MESSAGES
83	ln -sf ../${FRENCH}.ISO8859-1/LC_MESSAGES \
84		${LOCALEDIR}/${link}.ISO8859-15/LC_MESSAGES
85.endfor
86.for link in ${GERMANLINKS}
87	ln -sf ../${GERMAN}.ISO8859-1/LC_MESSAGES \
88		${LOCALEDIR}/${link}.ISO8859-1/LC_MESSAGES
89	ln -sf ../${GERMAN}.ISO8859-1/LC_MESSAGES \
90		${LOCALEDIR}/${link}.ISO8859-15/LC_MESSAGES
91.endfor
92.for link in ${CZECHLINKS}
93	ln -sf ../${CZECH}.ISO8859-2/LC_MESSAGES \
94		${LOCALEDIR}/${link}.ISO8859-2/LC_MESSAGES
95.endfor
96.for link in ${ASCIILINKS}
97	ln -sf ../${link}.ISO8859-1/LC_MESSAGES \
98		${LOCALEDIR}/${link}.US-ASCII/LC_MESSAGES
99.endfor
100
101.include <bsd.prog.mk>
102