Makefile revision 52379
151974Smsmith# $FreeBSD: head/share/timedef/Makefile 52379 1999-10-18 13:39:50Z ache $
265245Smsmith
365245SmsmithNOMAN=YES
451974SmsmithCLEANFILES+= ${LOCALES:S/$/.out/g}
551974Smsmith
651974SmsmithLOCALES=        da_DK.ISO_8859-1 \
751974Smsmith		de_AT.ISO_8859-1 \
851974Smsmith		de_DE.ISO_8859-1 \
951974Smsmith		en_GB.ISO_8859-1 \
1051974Smsmith		en_US.ISO_8859-1 \
1151974Smsmith		es_ES.ISO_8859-1 \
1251974Smsmith		fi_FI.ISO_8859-1 \
1351974Smsmith		fr_FR.ISO_8859-1 \
1451974Smsmith		hr_HR.ISO_8859-2 \
1551974Smsmith		hu_HU.ISO_8859-2 \
1651974Smsmith		is_IS.ISO_8859-1 \
1751974Smsmith		ja_JP.EUC	 \
1851974Smsmith		ja_JP.SJIS 	 \
1951974Smsmith		it_IT.ISO_8859-1 \
2051974Smsmith		ko_KR.EUC        \
2151974Smsmith		lt_LN.ISO_8859-1 \
2251974Smsmith		nl_NL.ISO_8859-1 \
2351974Smsmith		no_NO.ISO_8859-1 \
2451974Smsmith		pl_PL.ISO_8859-2 \
2551974Smsmith		pt_PT.ISO_8859-1 \
2651974Smsmith		ru_SU.CP866 	 \
27106225Semoore		ru_SU.ISO_8859-5 \
28106225Semoore		ru_SU.KOI8-R     \
29106225Semoore		sl_SI.ISO_8859-2 \
30106225Semoore		sv_SE.ISO_8859-1 \
31106225Semoore		zh_CN.EUC	 \
32106225Semoore		zh_TW.Big5
33106225Semoore
34106225SemooreLOCALEDIR=      ${DESTDIR}/usr/share/locale
35106225Semoore
36106225Semoore8859_15_LINKS = da_DK de_AT de_DE en_GB en_US es_ES fi_FI fr_FR is_IS \
37106225Semoore                it_IT lt_LN nl_NL no_NO pt_PT sv_SE
38106225SemooreDE_LINKS =      de_CH
39105419SemooreFR_LINKS =      fr_BE fr_CA fr_CH
40106225SemooreIT_LINKS =      it_CH
41105419SemooreLN_LINKS =      lt_LN.ASCII lt_LN.ISO_8859-2
42105419SemooreNL_LINKS =      nl_BE
43106225SemooreUS_LINKS =      en_CA
44106225SemooreGB_LINKS =      en_AU
45106225SemooreJP_LINKS = 	ja_JP.Shift_JIS
46106225Semoore
47106225Semoore.SUFFIXES: .src .out
48106225Semoore
49106225Semoore.src.out:
50106225Semoore	grep -v '^#' < ${.IMPSRC} > ${.TARGET}
51106225Semoore
52106225Semooreall: ${LOCALES:S/$/.out/g}
53106225Semoore
54105419Semooreafterinstall:
55106225Semoore	for l in ${LOCALES}; do \
5651974Smsmith		${INSTALL} ${COPY} -m 644 -o ${BINOWN} -g ${BINGRP} $$l.out \
5751974Smsmith			   ${LOCALEDIR}/$$l/LC_TIME; \
5851974Smsmith	done
5951974Smsmith	for l in ${8859_15_LINKS}; do \
6065245Smsmith		ln -fs ../$$l.ISO_8859-1/LC_TIME \
6151974Smsmith		       ${LOCALEDIR}/$$l.DIS_8859-15/LC_TIME; \
6251974Smsmith	done
6351974Smsmith	for l in ${DE_LINKS}; do \
6451974Smsmith		ln -fs ../de_DE.ISO_8859-1/LC_TIME \
6551974Smsmith		       ${LOCALEDIR}/$$l.ISO_8859-1/LC_TIME; \
6651974Smsmith	done
6751974Smsmith	for l in ${DE_LINKS}; do \
6865245Smsmith		ln -fs ../de_DE.ISO_8859-1/LC_TIME \
6951974Smsmith		       ${LOCALEDIR}/$$l.DIS_8859-15/LC_TIME; \
7051974Smsmith	done
7151974Smsmith	for l in ${IT_LINKS}; do \
7251974Smsmith		ln -fs ../it_IT.ISO_8859-1/LC_TIME \
7365245Smsmith		       ${LOCALEDIR}/$$l.ISO_8859-1/LC_TIME; \
7451974Smsmith	done
7565245Smsmith	for l in ${IT_LINKS}; do \
7665245Smsmith		ln -fs ../it_IT.ISO_8859-1/LC_TIME \
7765245Smsmith		       ${LOCALEDIR}/$$l.DIS_8859-15/LC_TIME; \
7851974Smsmith	done
7951974Smsmith	for l in ${FR_LINKS}; do \
8051974Smsmith		ln -fs ../fr_FR.ISO_8859-1/LC_TIME \
8165245Smsmith		       ${LOCALEDIR}/$$l.ISO_8859-1/LC_TIME; \
8265245Smsmith	done
8365245Smsmith	for l in ${FR_LINKS}; do \
8451974Smsmith		ln -fs ../fr_FR.ISO_8859-1/LC_TIME \
8551974Smsmith		       ${LOCALEDIR}/$$l.DIS_8859-15/LC_TIME; \
8651974Smsmith	done
8765245Smsmith	for l in ${LN_LINKS}; do \
8865245Smsmith		ln -fs ../lt_LN.ISO_8859-1/LC_TIME \
8951974Smsmith		       ${LOCALEDIR}/$$l/LC_TIME; \
9051974Smsmith	done
9151974Smsmith	for l in ${NL_LINKS}; do \
9265245Smsmith		ln -fs ../nl_NL.ISO_8859-1/LC_TIME \
9365245Smsmith		       ${LOCALEDIR}/$$l.ISO_8859-1/LC_TIME; \
9465245Smsmith	done
9565245Smsmith	for l in ${NL_LINKS}; do \
9651974Smsmith		ln -fs ../nl_NL.ISO_8859-1/LC_TIME \
97111815Sphk		       ${LOCALEDIR}/$$l.DIS_8859-15/LC_TIME; \
98111815Sphk	done
99111815Sphk	for l in ${US_LINKS}; do \
100111815Sphk		ln -fs ../en_US.ISO_8859-1/LC_TIME \
101111815Sphk		       ${LOCALEDIR}/$$l.ISO_8859-1/LC_TIME; \
10251974Smsmith	done
10351974Smsmith	for l in ${US_LINKS}; do \
10465245Smsmith		ln -fs ../en_US.ISO_8859-1/LC_TIME \
10565245Smsmith		       ${LOCALEDIR}/$$l.DIS_8859-15/LC_TIME; \
10665245Smsmith	done
10765245Smsmith	for l in ${GB_LINKS}; do \
10851974Smsmith		ln -fs ../en_GB.ISO_8859-1/LC_TIME \
10951974Smsmith		       ${LOCALEDIR}/$$l.ISO_8859-1/LC_TIME; \
11051974Smsmith	done
11151974Smsmith	for l in ${GB_LINKS}; do \
11265245Smsmith		ln -fs ../en_GB.ISO_8859-1/LC_TIME \
11365245Smsmith		       ${LOCALEDIR}/$$l.DIS_8859-15/LC_TIME; \
11465245Smsmith	done
11565245Smsmith	for l in ${JP_LINKS}; do \
116106225Semoore		ln -fs ../ja_JP.SJIS/LC_TIME \
11751974Smsmith		       ${LOCALEDIR}/$$l/LC_TIME; \
11851974Smsmith	done
11965245Smsmith
12051974Smsmith.include <bsd.prog.mk>
12165245Smsmith