1# $FreeBSD$ 2 3NOMAN=YES 4CLEANFILES+= ${LOCALES:S/$/.out/g} 5 6LOCALES= af_ZA.ISO8859-1 \ 7 am_ET.UTF-8 \ 8 be_BY.CP1131 \ 9 be_BY.CP1251 \ 10 be_BY.ISO8859-5 \ 11 be_BY.UTF-8 \ 12 bg_BG.CP1251 \ 13 bg_BG.UTF-8 \ 14 ca_ES.ISO8859-1 \ 15 cs_CZ.ISO8859-2 \ 16 cs_CZ.UTF-8 \ 17 da_DK.ISO8859-1 \ 18 de_AT.ISO8859-1 \ 19 de_CH.ISO8859-1 \ 20 de_DE.ISO8859-1 \ 21 el_GR.ISO8859-7 \ 22 en_AU.ISO8859-1 \ 23 en_CA.ISO8859-1 \ 24 en_GB.ISO8859-1 \ 25 en_GB.UTF-8 \ 26 en_IE.UTF-8 \ 27 en_NZ.ISO8859-1 \ 28 en_US.ISO8859-1 \ 29 es_ES.ISO8859-1 \ 30 et_EE.ISO8859-15 \ 31 fi_FI.ISO8859-1 \ 32 fr_BE.ISO8859-1 \ 33 fr_CA.ISO8859-1 \ 34 fr_FR.ISO8859-1 \ 35 he_IL.UTF-8 \ 36 hi_IN.ISCII-DEV \ 37 hr_HR.ISO8859-2 \ 38 hu_HU.ISO8859-2 \ 39 hy_AM.ARMSCII-8 \ 40 hy_AM.UTF-8 \ 41 is_IS.ISO8859-1 \ 42 it_IT.ISO8859-1 \ 43 ja_JP.eucJP \ 44 ja_JP.UTF-8 \ 45 kk_KZ.PT154 \ 46 kk_KZ.UTF-8 \ 47 ko_KR.eucKR \ 48 ko_KR.UTF-8 \ 49 lt_LT.ISO8859-13 \ 50 nl_BE.ISO8859-1 \ 51 nl_NL.ISO8859-1 \ 52 no_NO.ISO8859-1 \ 53 pl_PL.ISO8859-2 \ 54 pl_PL.UTF-8 \ 55 pt_BR.ISO8859-1 \ 56 pt_PT.ISO8859-1 \ 57 ro_RO.ISO8859-2 \ 58 ru_RU.CP1251 \ 59 ru_RU.CP866 \ 60 ru_RU.ISO8859-5 \ 61 ru_RU.KOI8-R \ 62 ru_RU.UTF-8 \ 63 sk_SK.ISO8859-2 \ 64 sl_SI.ISO8859-2 \ 65 sr_YU.ISO8859-2 \ 66 sr_YU.ISO8859-5 \ 67 sr_YU.UTF-8 \ 68 sv_SE.ISO8859-1 \ 69 tr_TR.ISO8859-9 \ 70 uk_UA.ISO8859-5 \ 71 uk_UA.KOI8-U \ 72 uk_UA.UTF-8 \ 73 zh_CN.eucCN \ 74 zh_CN.GB18030 \ 75 zh_CN.GB2312 \ 76 zh_CN.UTF-8 \ 77 zh_HK.UTF-8 \ 78 zh_TW.Big5 79 80LOCALEDIR= ${DESTDIR}/usr/share/locale 81 82ASCIILINKS= en_AU en_CA en_GB en_NZ en_US 83LATIN15LINKS= af_ZA ca_ES da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_NZ \ 84 en_US es_ES fi_FI fr_BE fr_CA fr_CH fr_FR is_IS is_IS it_IT \ 85 it_CH nl_BE nl_NL no_NO pt_PT sv_SE 86 87UTF8_LATIN1LINKS= af_ZA ca_ES da_DK de_AT de_CH de_DE en_AU en_CA en_NZ \ 88 en_US es_ES fi_FI fr_BE fr_CA fr_FR is_IS it_IT nl_BE \ 89 nl_NL no_NO pt_BR pt_PT sv_SE 90UTF8_LATIN2LINKS= hr_HR hu_HU ro_RO sk_SK sl_SI sr_YU 91UTF8_LATIN7LINKS= el_GR 92UTF8_LATIN9LINKS= tr_TR 93UTF8_LATIN13LINKS= lt_LT 94UTF8_LATIN15LINKS= et_EE 95 96CH_SRC= de_CH 97CH_LINKS= fr_CH it_CH 98 99.SUFFIXES: .src .out 100 101.src.out: 102 grep -v '^#' < ${.IMPSRC} > ${.TARGET} 103 104all: ${LOCALES:S/$/.out/g} 105 106afterinstall: 107.for lang in ${LOCALES} 108 ${INSTALL} -m 644 -o ${BINOWN} -g ${BINGRP} ${lang}.out \ 109 ${LOCALEDIR}/${lang}/LC_MONETARY 110.endfor 111.for link in ${LATIN15LINKS} 112 ln -sf ../${link}.ISO8859-1/LC_MONETARY \ 113 ${LOCALEDIR}/${link}.ISO8859-15/LC_MONETARY 114.endfor 115.for link in ${ASCIILINKS} 116 ln -sf ../${link}.ISO8859-1/LC_MONETARY \ 117 ${LOCALEDIR}/${link}.US-ASCII/LC_MONETARY 118.endfor 119.for link in ${CH_LINKS} 120 ln -sf ../${CH_SRC}.ISO8859-1/LC_MONETARY \ 121 ${LOCALEDIR}/${link}.ISO8859-1/LC_MONETARY 122.endfor 123 ln -sf ../ja_JP.eucJP/LC_MONETARY \ 124 ${LOCALEDIR}/ja_JP.SJIS/LC_MONETARY 125 ln -sf ../ko_KR.eucKR/LC_MONETARY \ 126 ${LOCALEDIR}/ko_KR.CP949/LC_MONETARY 127 ln -sf ../zh_CN.GB2312/LC_MONETARY \ 128 ${LOCALEDIR}/zh_CN.GBK/LC_MONETARY 129.for link in ${UTF8_LATIN1LINKS} 130 ln -sf ../${link}.ISO8859-1/LC_MONETARY \ 131 ${LOCALEDIR}/${link}.UTF-8/LC_MONETARY 132.endfor 133.for link in ${UTF8_LATIN2LINKS} 134 ln -sf ../${link}.ISO8859-2/LC_MONETARY \ 135 ${LOCALEDIR}/${link}.UTF-8/LC_MONETARY 136.endfor 137.for link in ${UTF8_LATIN7LINKS} 138 ln -sf ../${link}.ISO8859-7/LC_MONETARY \ 139 ${LOCALEDIR}/${link}.UTF-8/LC_MONETARY 140.endfor 141.for link in ${UTF8_LATIN9LINKS} 142 ln -sf ../${link}.ISO8859-9/LC_MONETARY \ 143 ${LOCALEDIR}/${link}.UTF-8/LC_MONETARY 144.endfor 145.for link in ${UTF8_LATIN13LINKS} 146 ln -sf ../${link}.ISO8859-13/LC_MONETARY \ 147 ${LOCALEDIR}/${link}.UTF-8/LC_MONETARY 148.endfor 149.for link in ${UTF8_LATIN15LINKS} 150 ln -sf ../${link}.ISO8859-15/LC_MONETARY \ 151 ${LOCALEDIR}/${link}.UTF-8/LC_MONETARY 152.endfor 153.for link in ${CH_LINKS} 154 ln -sf ../${CH_SRC}.UTF-8/LC_MONETARY \ 155 ${LOCALEDIR}/${link}.UTF-8/LC_MONETARY 156.endfor 157 ln -sf ../zh_TW.Big5/LC_MONETARY \ 158 ${LOCALEDIR}/zh_TW.UTF-8/LC_MONETARY 159 ln -sf ../zh_HK.UTF-8/LC_MONETARY \ 160 ${LOCALEDIR}/zh_HK.Big5HKSCS/LC_MONETARY 161 162.include <bsd.prog.mk> 163