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