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