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