summaryrefslogtreecommitdiffstats
path: root/share/numericdef/Makefile
blob: 1d9badb73973e5b92a5d4537d3118e53090a49b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# $FreeBSD$

NOMAN=YES
CLEANFILES+= ${LOCALES:S/$/.out/g}

LOCALES=	af_ZA.ISO_8859-1 \
		cs_CZ.ISO_8859-2 \
		da_DK.ISO_8859-1 \
		de_DE.ISO_8859-1 \
		el_GR.ISO_8859-7 \
		en_US.ISO_8859-1 \
		es_ES.ISO_8859-1 \
		et_EE.ISO_8859-15 \
		fi_FI.ISO_8859-1 \
		fr_FR.ISO_8859-1 \
		hr_HR.ISO_8859-2 \
		hu_HU.ISO_8859-2 \
		is_IS.ISO_8859-1 \
		it_IT.ISO_8859-1 \
		nl_NL.ISO_8859-1 \
		no_NO.ISO_8859-1 \
		pl_PL.ISO_8859-2 \
		pt_PT.ISO_8859-1 \
		ru_RU.CP866 \
		ru_RU.ISO_8859-5 \
		ru_RU.KOI8-R \
		sk_SK.ISO_8859-2 \
		sl_SI.ISO_8859-2 \
		sv_SE.ISO_8859-1 \
		tr_TR.ISO_8859-9 \
		uk_UA.KOI8-U \
		ko_KR.EUC \
		ja_JP.EUC \
		zh_TW.Big5 \
		zh_CN.EUC

LOCALEDIR=      ${DESTDIR}/usr/share/locale

USENGLISH=	en_US.ISO_8859-1
USENGLISHLINKS=	en_CA.ISO_8859-1 en_GB.ISO_8859-1
GBENGLISH=	en_GB.ISO_8859-1
GBENGLISHLINKS=	en_AU.ISO_8859-1 en_NZ.ISO_8859-1
FRENCH=		fr_FR.ISO_8859-1
FRENCHLINKS=	fr_CA.ISO_8859-1 fr_CH.ISO_8859-1
GERMAN=		de_DE.ISO_8859-1
GERMANLINKS=	de_AT.ISO_8859-1

.SUFFIXES: .src .out

.src.out:
	grep -v '^#' < ${.IMPSRC} > ${.TARGET}

all: ${LOCALES:S/$/.out/g}

afterinstall:
.for lang in ${LOCALES}
	${INSTALL} ${COPY} -m 644 -o ${BINOWN} -g ${BINGRP} ${lang}.out \
			   ${LOCALEDIR}/${lang}/LC_NUMERIC
.endfor
.for link in ${USENGLISHLINKS}
	ln -sf ../${USENGLISH}/LC_NUMERIC ${LOCALEDIR}/${link}/LC_NUMERIC
.endfor
.for link in ${GBENGLISHLINKS}
	ln -sf ../${GBENGLISH}/LC_NUMERIC ${LOCALEDIR}/${link}/LC_NUMERIC
.endfor
.for link in ${FRENCHLINKS}
	ln -sf ../${FRENCH}/LC_NUMERIC ${LOCALEDIR}/${link}/LC_NUMERIC
.endfor

.include <bsd.prog.mk>
OpenPOWER on IntegriCloud