Makefile revision 118174
150477Speter# $FreeBSD: head/share/mklocale/Makefile 118174 2003-07-29 16:12:56Z ache $
212029Sache
312029SacheNOMAN=YES
412029SacheCLEANFILES+= ${LOCALES:S/$/.out/g}
512029Sache
686072SacheLOCALES=	bg_BG.CP1251 \
786072Sache		el_GR.ISO8859-7 \
888473Sphantom		hi_IN.ISCII-DEV \
9117259Sache		hy_AM.ARMSCII-8 \
1088473Sphantom		ja_JP.SJIS \
1177977Sache		ja_JP.eucJP \
1277977Sache		ko_KR.eucKR \
1377977Sache		la_LN.ISO8859-1 \
1488473Sphantom		la_LN.ISO8859-15 \
1577977Sache		la_LN.ISO8859-2 \
1677977Sache		la_LN.ISO8859-4 \
1788473Sphantom		la_LN.US-ASCII \
18105965Sache		lt_LT.ISO8859-13 \
1970484Sphantom		ru_RU.CP866 \
2077977Sache		ru_RU.ISO8859-5 \
2170484Sphantom		ru_RU.KOI8-R \
2252388Sache		uk_UA.KOI8-U \
2377977Sache		zh_CN.eucCN \
24118174Sache		zh_CN.GB18030 \
25115628Sache		zh_CN.GBK \
2647831Sfoxfair		zh_TW.Big5
2723222Swosch
2812029SacheLOCALEDIR=	${DESTDIR}/usr/share/locale
2912029Sache
3088473SphantomASCIILINKS=	en_AU en_CA en_GB en_NZ en_US
31108428SacheLATIN1XLINKS=   af_ZA ca_ES da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_NZ \
32108428Sache		en_US es_ES fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT \
33108428Sache		nl_BE nl_NL no_NO pt_PT sv_SE
3493885SphantomLATIN1LINKS=	${LATIN1XLINKS} pt_BR
3593885SphantomLATIN15LINKS=	${LATIN1XLINKS} et_EE
36105445SacheLATIN2LINKS=	cs_CZ hr_HR hu_HU pl_PL sl_SI sr_YU ro_RO sk_SK
3788473SphantomLATIN4LINKS=	lt_LT
38105445SacheLATIN5LINKS=	sr_YU uk_UA
39115912SacheCP1251LINKS=    ru_RU
4078002Sache
4112029Sache.SUFFIXES: .src .out
4212029Sache
4312029Sache.src.out:
4437481Sbde	mklocale -o ${.TARGET} ${.IMPSRC}
4512029Sache
4612029Sacheall: ${LOCALES:S/$/.out/g}
4712029Sache
4812029Sacheafterinstall:
4923224Sadam.for locale in ${LOCALES}
50100872Sru	${INSTALL} -m 644 -o ${BINOWN} -g ${BINGRP} \
5123224Sadam		${locale}.out ${LOCALEDIR}/${locale}/LC_CTYPE
5223222Swosch.endfor
5323222Swosch.for link in ${LATIN1LINKS}
5477977Sache	ln -fs ../la_LN.ISO8859-1/LC_CTYPE \
5577988Sache		       ${LOCALEDIR}/${link}.ISO8859-1/LC_CTYPE
5623222Swosch.endfor
5774398Sache.for link in ${LATIN15LINKS}
5877977Sache	ln -fs ../la_LN.ISO8859-15/LC_CTYPE \
5977988Sache		       ${LOCALEDIR}/${link}.ISO8859-15/LC_CTYPE
6041760Sdillon.endfor
6123222Swosch.for link in ${LATIN2LINKS}
6277977Sache	ln -fs ../la_LN.ISO8859-2/LC_CTYPE \
6377988Sache		${LOCALEDIR}/${link}.ISO8859-2/LC_CTYPE
6423222Swosch.endfor
6555075Sache.for link in ${LATIN4LINKS}
6677977Sache	ln -fs ../la_LN.ISO8859-4/LC_CTYPE \
6777988Sache		${LOCALEDIR}/${link}.ISO8859-4/LC_CTYPE
6855075Sache.endfor
6988314Sache.for link in ${LATIN5LINKS}
7088314Sache	ln -fs ../ru_RU.ISO8859-5/LC_CTYPE \
7188314Sache		${LOCALEDIR}/${link}.ISO8859-5/LC_CTYPE
7288314Sache.endfor
73115912Sache.for link in ${CP1251LINKS}
74115912Sache	ln -fs ../bg_BG.CP1251/LC_CTYPE \
75115912Sache		${LOCALEDIR}/${link}.CP1251/LC_CTYPE
76115912Sache.endfor
7778002Sache.for link in ${ASCIILINKS}
7877977Sache	ln -fs ../la_LN.US-ASCII/LC_CTYPE \
7978002Sache		${LOCALEDIR}/${link}.US-ASCII/LC_CTYPE
8078002Sache.endfor
8193889Sphantom	ln -fs ../la_LN.US-ASCII/LC_CTYPE \
8293889Sphantom		${LOCALEDIR}/tr_TR.ISO8859-9/LC_CTYPE
8312029Sache
8412029Sache.include <bsd.prog.mk>
85