xref: /freebsd/share/colldef/Makefile (revision a8445737e740901f5f2c8d24c12ef7fc8b00134e)
1# $Id: Makefile,v 1.14 1998/08/07 17:08:56 ache Exp $
2
3NOMAN=YES
4CLEANFILES+= ${LOCALES:S/$/.out/g}
5
6LOCALES=        de_DE.ISO_8859-1 \
7		es_ES.ISO_8859-1 \
8		is_IS.ISO_8859-1 \
9		lt_LN.ASCII      \
10		lt_LN.ISO_8859-1 \
11		lt_LN.ISO_8859-2 \
12		ru_SU.CP866 \
13		ru_SU.KOI8-R
14
15LOCALEDIR=      ${DESTDIR}/usr/share/locale
16
17ASCIILINKS = \
18	ko_KR.EUC ja_JP.EUC ja_JP.SJIS zh_CN.EUC
19
20LATIN1LINKS = \
21	da_DK en_AU en_CA en_GB en_US fi_FI \
22	fr_BE fr_CA fr_CH fr_FR it_CH it_IT nl_BE nl_NL no_NO \
23	pt_PT sv_SE
24
25LATIN2LINKS = hr_HR hu_HU pl_PL sl_SI
26
27DELINKS = de_AT de_CH
28
29.SUFFIXES: .src .out
30
31.src.out:
32	colldef -I ${.CURDIR} -o ${.TARGET} ${.IMPSRC}
33
34.if !defined(_BUILD_TOOLS)
35all: ${LOCALES:S/$/.out/g}
36.endif
37
38ru_SU.KOI8-R.out:       map.KOI8-R
39ru_SU.CP866.out:        map.CP866
40lt_LN.ISO_8859-1.out:   map.ISO_8859-1
41lt_LN.ISO_8859-2.out:   map.ISO_8859-2
42es_ES.ISO_8859-1.out:   map.ISO_8859-1
43de_DE.ISO_8859-1.out:   map.ISO_8859-1
44
45.if !defined(_BUILD_TOOLS)
46afterinstall:
47.for locale in ${LOCALES}
48	${INSTALL} -c -m 644 -o ${BINOWN} -g ${BINGRP} \
49		${locale}.out ${LOCALEDIR}/${locale}/LC_COLLATE
50.endfor
51.for link in ${ASCIILINKS}
52	ln -fs ../lt_LN.ASCII/LC_COLLATE \
53	       ${LOCALEDIR}/${link}/LC_COLLATE
54.endfor
55.for link in ${LATIN1LINKS}
56	ln -fs ../lt_LN.ISO_8859-1/LC_COLLATE \
57	       ${LOCALEDIR}/${link}.ISO_8859-1/LC_COLLATE
58.endfor
59.for link in ${LATIN2LINKS}
60	ln -fs ../lt_LN.ISO_8859-2/LC_COLLATE \
61	       ${LOCALEDIR}/${link}.ISO_8859-2/LC_COLLATE
62.endfor
63.for link in ${DELINKS}
64	ln -fs ../de_DE.ISO_8859-1/LC_COLLATE \
65	       ${LOCALEDIR}/${link}.ISO_8859-1/LC_COLLATE
66.endfor
67.endif
68
69.include <bsd.prog.mk>
70