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