Makefile revision 118652
150477Speter# $FreeBSD: head/share/mklocale/Makefile 118652 2003-08-08 13:48:15Z ache $
212029Sache
312029SacheNOMAN=YES
412029SacheCLEANFILES+= ${LOCALES:S/$/.out/g}
512029Sache
6118459SmtmLOCALES=	am_ET.UTF-8 \
7118459Smtm		bg_BG.CP1251 \
886072Sache		el_GR.ISO8859-7 \
988473Sphantom		hi_IN.ISCII-DEV \
10117259Sache		hy_AM.ARMSCII-8 \
1188473Sphantom		ja_JP.SJIS \
1277977Sache		ja_JP.eucJP \
13118652Sache		ko_KR.CP949 \
1477977Sache		ko_KR.eucKR \
1577977Sache		la_LN.ISO8859-1 \
1688473Sphantom		la_LN.ISO8859-15 \
1777977Sache		la_LN.ISO8859-2 \
1877977Sache		la_LN.ISO8859-4 \
1988473Sphantom		la_LN.US-ASCII \
20105965Sache		lt_LT.ISO8859-13 \
2170484Sphantom		ru_RU.CP866 \
2277977Sache		ru_RU.ISO8859-5 \
2370484Sphantom		ru_RU.KOI8-R \
2452388Sache		uk_UA.KOI8-U \
2577977Sache		zh_CN.eucCN \
26118174Sache		zh_CN.GB18030 \
27115628Sache		zh_CN.GBK \
2847831Sfoxfair		zh_TW.Big5
2923222Swosch
3012029SacheLOCALEDIR=	${DESTDIR}/usr/share/locale
3112029Sache
3288473SphantomASCIILINKS=	en_AU en_CA en_GB en_NZ en_US
33108428SacheLATIN1XLINKS=   af_ZA ca_ES da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_NZ \
34108428Sache		en_US es_ES fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT \
35108428Sache		nl_BE nl_NL no_NO pt_PT sv_SE
3693885SphantomLATIN1LINKS=	${LATIN1XLINKS} pt_BR
3793885SphantomLATIN15LINKS=	${LATIN1XLINKS} et_EE
38105445SacheLATIN2LINKS=	cs_CZ hr_HR hu_HU pl_PL sl_SI sr_YU ro_RO sk_SK
3988473SphantomLATIN4LINKS=	lt_LT
40105445SacheLATIN5LINKS=	sr_YU uk_UA
41115912SacheCP1251LINKS=    ru_RU
4278002Sache
4312029Sache.SUFFIXES: .src .out
4412029Sache
4512029Sache.src.out:
4637481Sbde	mklocale -o ${.TARGET} ${.IMPSRC}
4712029Sache
4812029Sacheall: ${LOCALES:S/$/.out/g}
4912029Sache
5012029Sacheafterinstall:
5123224Sadam.for locale in ${LOCALES}
52100872Sru	${INSTALL} -m 644 -o ${BINOWN} -g ${BINGRP} \
5323224Sadam		${locale}.out ${LOCALEDIR}/${locale}/LC_CTYPE
5423222Swosch.endfor
5523222Swosch.for link in ${LATIN1LINKS}
5677977Sache	ln -fs ../la_LN.ISO8859-1/LC_CTYPE \
5777988Sache		       ${LOCALEDIR}/${link}.ISO8859-1/LC_CTYPE
5823222Swosch.endfor
5974398Sache.for link in ${LATIN15LINKS}
6077977Sache	ln -fs ../la_LN.ISO8859-15/LC_CTYPE \
6177988Sache		       ${LOCALEDIR}/${link}.ISO8859-15/LC_CTYPE
6241760Sdillon.endfor
6323222Swosch.for link in ${LATIN2LINKS}
6477977Sache	ln -fs ../la_LN.ISO8859-2/LC_CTYPE \
6577988Sache		${LOCALEDIR}/${link}.ISO8859-2/LC_CTYPE
6623222Swosch.endfor
6755075Sache.for link in ${LATIN4LINKS}
6877977Sache	ln -fs ../la_LN.ISO8859-4/LC_CTYPE \
6977988Sache		${LOCALEDIR}/${link}.ISO8859-4/LC_CTYPE
7055075Sache.endfor
7188314Sache.for link in ${LATIN5LINKS}
7288314Sache	ln -fs ../ru_RU.ISO8859-5/LC_CTYPE \
7388314Sache		${LOCALEDIR}/${link}.ISO8859-5/LC_CTYPE
7488314Sache.endfor
75115912Sache.for link in ${CP1251LINKS}
76115912Sache	ln -fs ../bg_BG.CP1251/LC_CTYPE \
77115912Sache		${LOCALEDIR}/${link}.CP1251/LC_CTYPE
78115912Sache.endfor
7978002Sache.for link in ${ASCIILINKS}
8077977Sache	ln -fs ../la_LN.US-ASCII/LC_CTYPE \
8178002Sache		${LOCALEDIR}/${link}.US-ASCII/LC_CTYPE
8278002Sache.endfor
8393889Sphantom	ln -fs ../la_LN.US-ASCII/LC_CTYPE \
8493889Sphantom		${LOCALEDIR}/tr_TR.ISO8859-9/LC_CTYPE
8512029Sache
8612029Sache.include <bsd.prog.mk>
87