xref: /freebsd/share/colldef/Makefile (revision 0de89efe5c443f213c7ea28773ef2dc6cf3af2ed)
1# $Id: Makefile,v 1.9 1997/03/25 16:50:05 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
17.if exists(${.OBJDIR}/../colldef)
18COLLDEF=${.OBJDIR}/../colldef
19.else
20COLLDEF=${.CURDIR}/../colldef
21.endif
22
23ASCIILINKS = \
24	ko_KR.EUC ja_JP.EUC ja_JP.SJIS
25
26LATIN1LINKS = \
27	da_DK en_AU en_CA en_GB en_US fi_FI \
28	fr_BE fr_CA fr_CH fr_FR it_CH it_IT nl_BE nl_NL no_NO \
29	pt_PT sv_SE
30
31LATIN2LINKS = hr_HR
32
33DELINKS = de_AT de_CH
34
35.SUFFIXES: .src .out
36
37.src.out:
38	${COLLDEF} -I ${.CURDIR} -o ${.TARGET} ${.IMPSRC}
39
40all: ${LOCALES:S/$/.out/g}
41
42ru_SU.KOI8-R.out:       map.KOI8-R
43ru_SU.CP866.out:        map.CP866
44lt_LN.ISO_8859-1.out:   map.ISO_8859-1
45lt_LN.ISO_8859-2.out:   map.ISO_8859-2
46es_ES.ISO_8859-1.out:   map.ISO_8859-1
47de_DE.ISO_8859-1.out:   map.ISO_8859-1
48
49afterinstall:
50.for locale in ${LOCALES}
51	${INSTALL} -c -m 644 -o ${BINOWN} -g ${BINGRP} \
52		${locale}.out ${LOCALEDIR}/${locale}/LC_COLLATE
53.endfor
54.for link in ${ASCIILINKS}
55	ln -fs ../lt_LN.ASCII/LC_COLLATE \
56	       ${LOCALEDIR}/${link}/LC_COLLATE
57.endfor
58.for link in ${LATIN1LINKS}
59	ln -fs ../lt_LN.ISO_8859-1/LC_COLLATE \
60	       ${LOCALEDIR}/${link}.ISO_8859-1/LC_COLLATE
61.endfor
62.for link in ${LATIN2LINKS}
63	ln -fs ../lt_LN.ISO_8859-2/LC_COLLATE \
64	       ${LOCALEDIR}/${link}.ISO_8859-2/LC_COLLATE
65.endfor
66.for link in ${DELINKS}
67	ln -fs ../de_DE.ISO_8859-1/LC_COLLATE \
68	       ${LOCALEDIR}/${link}.ISO_8859-1/LC_COLLATE
69.endfor
70
71
72.include <bsd.prog.mk>
73