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