19636f5c965d68855ad413962d4d0eef135d58e9
[dragonfly.git] / share / msgdef / Makefile
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.3 2004/08/28 15:17:37 asmodai Exp $
3
4 NOMAN=YES
5 CLEANFILES+= ${LOCALES:S/$/.out/g}
6
7 LOCALES=        af_ZA.ISO8859-1 \
8                 bg_BG.CP1251 \
9                 cs_CZ.ISO8859-2 \
10                 da_DK.ISO8859-1 \
11                 de_DE.ISO8859-1 \
12                 el_GR.ISO8859-7 \
13                 en_CA.ISO8859-1 \
14                 en_GB.ISO8859-1 \
15                 en_US.ISO8859-1 \
16                 es_ES.ISO8859-1 \
17                 et_EE.ISO8859-15 \
18                 fi_FI.ISO8859-1 \
19                 fr_BE.ISO8859-1 \
20                 fr_CH.ISO8859-1 \
21                 fr_FR.ISO8859-1 \
22                 hi_IN.ISCII-DEV \
23                 hr_HR.ISO8859-2 \
24                 hu_HU.ISO8859-2 \
25                 is_IS.ISO8859-1 \
26                 it_IT.ISO8859-1 \
27                 lt_LT.ISO8859-13 \
28                 nl_NL.ISO8859-1 \
29                 no_NO.ISO8859-1 \
30                 pl_PL.ISO8859-2 \
31                 pt_PT.ISO8859-1 \
32                 ro_RO.ISO8859-2 \
33                 ru_RU.CP866 \
34                 ru_RU.ISO8859-5 \
35                 ru_RU.KOI8-R \
36                 sl_SI.ISO8859-2 \
37                 sv_SE.ISO8859-1 \
38                 tr_TR.ISO8859-9 \
39                 uk_UA.ISO8859-5 \
40                 uk_UA.KOI8-U \
41                 ko_KR.eucKR \
42                 ja_JP.eucJP \
43                 ja_JP.SJIS \
44                 zh_TW.Big5 \
45                 zh_CN.eucCN
46
47 LOCALEDIR=      ${DESTDIR}/usr/share/locale
48
49 ASCIILINKS=     en_CA en_GB en_US
50 LATIN15LINKS=   af_ZA da_DK de_DE en_CA en_GB en_US es_ES fi_FI fr_BE fr_CH \
51                 fr_FR is_IS it_IT nl_NL no_NO pt_PT sv_SE
52
53 GB_LINKS=       en_AU en_NZ
54 FR_LINKS=       fr_CA
55 DE_LINKS=       de_AT de_CH
56 CZ_LINKS=       sk_SK
57 IT_LINKS=       it_CH
58 NL_LINKS=       nl_BE
59 PT_LINKS=       pt_BR
60
61 .SUFFIXES: .src .out
62
63 .src.out:
64         grep -v '^#' < ${.IMPSRC} > ${.TARGET}
65
66 all: ${LOCALES:S/$/.out/g}
67
68 afterinstall:
69 # HACK: remove LC_MESSAGES directories before installing LC_MESSAGES file
70         -rm -rf ${LOCALEDIR}/*/LC_MESSAGES
71 .for lang in ${LOCALES}
72         ${INSTALL} -m 644 -o ${BINOWN} -g ${BINGRP} ${lang}.out \
73                            ${LOCALEDIR}/${lang}/LC_MESSAGES
74 .endfor
75 .for link in ${LATIN15LINKS}
76         ln -sf ../${link}.ISO8859-1/LC_MESSAGES \
77                ${LOCALEDIR}/${link}.ISO8859-15/LC_MESSAGES
78 .endfor
79 .for link in ${GB_LINKS}
80         ln -sf ../en_GB.ISO8859-1/LC_MESSAGES \
81                 ${LOCALEDIR}/${link}.ISO8859-1/LC_MESSAGES
82         ln -sf ../en_GB.ISO8859-1/LC_MESSAGES \
83                 ${LOCALEDIR}/${link}.ISO8859-15/LC_MESSAGES
84         ln -sf ../en_GB.ISO8859-1/LC_MESSAGES \
85                 ${LOCALEDIR}/${link}.US-ASCII/LC_MESSAGES
86 .endfor
87 .for link in ${FR_LINKS}
88         ln -sf ../fr_FR.ISO8859-1/LC_MESSAGES \
89                 ${LOCALEDIR}/${link}.ISO8859-1/LC_MESSAGES
90         ln -sf ../fr_FR.ISO8859-1/LC_MESSAGES \
91                 ${LOCALEDIR}/${link}.ISO8859-15/LC_MESSAGES
92 .endfor
93 .for link in ${DE_LINKS}
94         ln -sf ../de_DE.ISO8859-1/LC_MESSAGES \
95                 ${LOCALEDIR}/${link}.ISO8859-1/LC_MESSAGES
96         ln -sf ../de_DE.ISO8859-1/LC_MESSAGES \
97                 ${LOCALEDIR}/${link}.ISO8859-15/LC_MESSAGES
98 .endfor
99 .for link in ${IT_LINKS}
100         ln -sf ../it_IT.ISO8859-1/LC_MESSAGES \
101                 ${LOCALEDIR}/${link}.ISO8859-1/LC_MESSAGES
102         ln -sf ../it_IT.ISO8859-1/LC_MESSAGES \
103                 ${LOCALEDIR}/${link}.ISO8859-15/LC_MESSAGES
104 .endfor
105 .for link in ${NL_LINKS}
106         ln -sf ../nl_NL.ISO8859-1/LC_MESSAGES \
107                 ${LOCALEDIR}/${link}.ISO8859-1/LC_MESSAGES
108         ln -sf ../nl_NL.ISO8859-1/LC_MESSAGES \
109                 ${LOCALEDIR}/${link}.ISO8859-15/LC_MESSAGES
110 .endfor
111 .for link in ${CZ_LINKS}
112         ln -sf ../cs_CZ.ISO8859-2/LC_MESSAGES \
113                 ${LOCALEDIR}/${link}.ISO8859-2/LC_MESSAGES
114 .endfor
115 .for link in ${PT_LINKS}
116         ln -sf ../pt_PT.ISO8859-1/LC_MESSAGES \
117                 ${LOCALEDIR}/${link}.ISO8859-1/LC_MESSAGES
118 .endfor
119 .for link in ${ASCIILINKS}
120         ln -sf ../${link}.ISO8859-1/LC_MESSAGES \
121                 ${LOCALEDIR}/${link}.US-ASCII/LC_MESSAGES
122 .endfor
123
124 .include <bsd.prog.mk>