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