xref: /freebsd/share/timedef/Makefile (revision fba9768c412c1d5eb079a43bc37d81641159f247)
1# $FreeBSD$
2
3NOMAN=YES
4CLEANFILES+= ${LOCALES:S/$/.out/g}
5
6LOCALES=	bg_BG.CP1251 \
7		cs_CZ.ISO8859-2 \
8		da_DK.ISO8859-1 \
9		de_AT.ISO8859-1 \
10		de_DE.ISO8859-1 \
11		el_GR.ISO8859-7 \
12		en_GB.ISO8859-1 \
13		en_US.ISO8859-1 \
14		es_ES.ISO8859-1 \
15		et_EE.ISO8859-15 \
16		fi_FI.ISO8859-1 \
17		fr_FR.ISO8859-1 \
18		hr_HR.ISO8859-2 \
19		hu_HU.ISO8859-2 \
20		is_IS.ISO8859-1 \
21		ja_JP.eucJP     \
22		ja_JP.SJIS      \
23		it_IT.ISO8859-1 \
24		ko_KR.eucKR     \
25		la_LN.ISO8859-1 \
26		lt_LT.ISO8859-4 \
27		nl_NL.ISO8859-1 \
28		no_NO.ISO8859-1 \
29		pl_PL.ISO8859-2 \
30		pt_PT.ISO8859-1 \
31		ru_RU.CP866     \
32		ru_RU.ISO8859-5 \
33		ru_RU.KOI8-R    \
34		sk_SK.ISO8859-2 \
35		sl_SI.ISO8859-2 \
36		sv_SE.ISO8859-1 \
37		tr_TR.ISO8859-9 \
38		uk_UA.KOI8-U    \
39		zh_CN.eucCN     \
40		zh_TW.Big5
41
42LOCALEDIR=      ${DESTDIR}/usr/share/locale
43
448859_15_LINKS = da_DK de_AT de_DE en_GB en_US es_ES fi_FI fr_FR is_IS \
45		it_IT la_LN nl_NL no_NO pt_PT sv_SE
46DE_LINKS =      de_CH
47FR_LINKS =      fr_BE fr_CA fr_CH
48IT_LINKS =      it_CH
49LN_LINKS =      la_LN.US-ASCII la_LN.ISO8859-2 la_LN.ISO8859-4
50NL_LINKS =      nl_BE
51US_LINKS =      en_CA
52GB_LINKS =      en_AU en_NZ
53
54.SUFFIXES: .src .out
55
56.src.out:
57	grep -v '^#' < ${.IMPSRC} > ${.TARGET}
58
59all: ${LOCALES:S/$/.out/g}
60
61afterinstall:
62	for l in ${LOCALES}; do \
63		${INSTALL} ${COPY} -m 644 -o ${BINOWN} -g ${BINGRP} $$l.out \
64			   ${LOCALEDIR}/$$l/LC_TIME; \
65	done
66	for l in ${8859_15_LINKS}; do \
67		ln -fs ../$$l.ISO8859-1/LC_TIME \
68		       ${LOCALEDIR}/$$l.ISO8859-15/LC_TIME; \
69	done
70	for l in ${DE_LINKS}; do \
71		ln -fs ../de_DE.ISO8859-1/LC_TIME \
72		       ${LOCALEDIR}/$$l.ISO8859-1/LC_TIME; \
73		ln -fs ../de_DE.ISO8859-1/LC_TIME \
74		       ${LOCALEDIR}/$$l.ISO8859-15/LC_TIME; \
75	done
76	for l in ${IT_LINKS}; do \
77		ln -fs ../it_IT.ISO8859-1/LC_TIME \
78		       ${LOCALEDIR}/$$l.ISO8859-1/LC_TIME; \
79		ln -fs ../it_IT.ISO8859-1/LC_TIME \
80		       ${LOCALEDIR}/$$l.ISO8859-15/LC_TIME; \
81	done
82	for l in ${FR_LINKS}; do \
83		ln -fs ../fr_FR.ISO8859-1/LC_TIME \
84		       ${LOCALEDIR}/$$l.ISO8859-1/LC_TIME; \
85		ln -fs ../fr_FR.ISO8859-1/LC_TIME \
86		       ${LOCALEDIR}/$$l.ISO8859-15/LC_TIME; \
87	done
88	for l in ${LN_LINKS}; do \
89		ln -fs ../la_LN.ISO8859-1/LC_TIME \
90		       ${LOCALEDIR}/$$l/LC_TIME; \
91	done
92	for l in ${NL_LINKS}; do \
93		ln -fs ../nl_NL.ISO8859-1/LC_TIME \
94		       ${LOCALEDIR}/$$l.ISO8859-1/LC_TIME; \
95		ln -fs ../nl_NL.ISO8859-1/LC_TIME \
96		       ${LOCALEDIR}/$$l.ISO8859-15/LC_TIME; \
97	done
98	for l in ${US_LINKS}; do \
99		ln -fs ../en_US.ISO8859-1/LC_TIME \
100		       ${LOCALEDIR}/$$l.ISO8859-1/LC_TIME; \
101		ln -fs ../en_US.ISO8859-1/LC_TIME \
102		       ${LOCALEDIR}/$$l.ISO8859-15/LC_TIME; \
103		ln -fs ../en_US.ISO8859-1/LC_TIME \
104		       ${LOCALEDIR}/$$l.US-ASCII/LC_TIME; \
105	done
106	for l in ${GB_LINKS}; do \
107		ln -fs ../en_GB.ISO8859-1/LC_TIME \
108		       ${LOCALEDIR}/$$l.ISO8859-1/LC_TIME; \
109		ln -fs ../en_GB.ISO8859-1/LC_TIME \
110		       ${LOCALEDIR}/$$l.ISO8859-15/LC_TIME; \
111		ln -fs ../en_GB.ISO8859-1/LC_TIME \
112		       ${LOCALEDIR}/$$l.US-ASCII/LC_TIME; \
113	done
114	ln -fs ../en_GB.ISO8859-1/LC_TIME \
115	       ${LOCALEDIR}/en_GB.US-ASCII/LC_TIME
116	ln -fs ../en_US.ISO8859-1/LC_TIME \
117	       ${LOCALEDIR}/en_US.US-ASCII/LC_TIME
118
119.include <bsd.prog.mk>
120