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_PT.ISO8859-1 \ 32 ru_RU.CP866 \ 33 ru_RU.ISO8859-5 \ 34 ru_RU.KOI8-R \ 35 sk_SK.ISO8859-2 \ 36 sl_SI.ISO8859-2 \ 37 sv_SE.ISO8859-1 \ 38 tr_TR.ISO8859-9 \ 39 uk_UA.KOI8-U \ 40 zh_CN.eucCN \ 41 zh_TW.Big5 42 43LOCALEDIR= ${DESTDIR}/usr/share/locale 44 458859_15_LINKS = da_DK de_AT de_DE en_GB en_US es_ES fi_FI fr_FR is_IS \ 46 it_IT la_LN nl_NL no_NO pt_PT sv_SE 47DE_LINKS = de_CH 48FR_LINKS = fr_BE fr_CA fr_CH 49IT_LINKS = it_CH 50LN_LINKS = la_LN.US-ASCII la_LN.ISO8859-2 la_LN.ISO8859-4 51NL_LINKS = nl_BE 52US_LINKS = en_CA 53GB_LINKS = en_AU en_NZ 54 55.SUFFIXES: .src .out 56 57.src.out: 58 grep -v '^#' < ${.IMPSRC} > ${.TARGET} 59 60all: ${LOCALES:S/$/.out/g} 61 62afterinstall: 63 for l in ${LOCALES}; do \ 64 ${INSTALL} ${COPY} -m 644 -o ${BINOWN} -g ${BINGRP} $$l.out \ 65 ${LOCALEDIR}/$$l/LC_TIME; \ 66 done 67 for l in ${8859_15_LINKS}; do \ 68 ln -fs ../$$l.ISO8859-1/LC_TIME \ 69 ${LOCALEDIR}/$$l.ISO8859-15/LC_TIME; \ 70 done 71 for l in ${DE_LINKS}; do \ 72 ln -fs ../de_DE.ISO8859-1/LC_TIME \ 73 ${LOCALEDIR}/$$l.ISO8859-1/LC_TIME; \ 74 ln -fs ../de_DE.ISO8859-1/LC_TIME \ 75 ${LOCALEDIR}/$$l.ISO8859-15/LC_TIME; \ 76 done 77 for l in ${IT_LINKS}; do \ 78 ln -fs ../it_IT.ISO8859-1/LC_TIME \ 79 ${LOCALEDIR}/$$l.ISO8859-1/LC_TIME; \ 80 ln -fs ../it_IT.ISO8859-1/LC_TIME \ 81 ${LOCALEDIR}/$$l.ISO8859-15/LC_TIME; \ 82 done 83 for l in ${FR_LINKS}; do \ 84 ln -fs ../fr_FR.ISO8859-1/LC_TIME \ 85 ${LOCALEDIR}/$$l.ISO8859-1/LC_TIME; \ 86 ln -fs ../fr_FR.ISO8859-1/LC_TIME \ 87 ${LOCALEDIR}/$$l.ISO8859-15/LC_TIME; \ 88 done 89 for l in ${LN_LINKS}; do \ 90 ln -fs ../la_LN.ISO8859-1/LC_TIME \ 91 ${LOCALEDIR}/$$l/LC_TIME; \ 92 done 93 for l in ${NL_LINKS}; do \ 94 ln -fs ../nl_NL.ISO8859-1/LC_TIME \ 95 ${LOCALEDIR}/$$l.ISO8859-1/LC_TIME; \ 96 ln -fs ../nl_NL.ISO8859-1/LC_TIME \ 97 ${LOCALEDIR}/$$l.ISO8859-15/LC_TIME; \ 98 done 99 for l in ${US_LINKS}; do \ 100 ln -fs ../en_US.ISO8859-1/LC_TIME \ 101 ${LOCALEDIR}/$$l.ISO8859-1/LC_TIME; \ 102 ln -fs ../en_US.ISO8859-1/LC_TIME \ 103 ${LOCALEDIR}/$$l.ISO8859-15/LC_TIME; \ 104 ln -fs ../en_US.ISO8859-1/LC_TIME \ 105 ${LOCALEDIR}/$$l.US-ASCII/LC_TIME; \ 106 done 107 for l in ${GB_LINKS}; do \ 108 ln -fs ../en_GB.ISO8859-1/LC_TIME \ 109 ${LOCALEDIR}/$$l.ISO8859-1/LC_TIME; \ 110 ln -fs ../en_GB.ISO8859-1/LC_TIME \ 111 ${LOCALEDIR}/$$l.ISO8859-15/LC_TIME; \ 112 ln -fs ../en_GB.ISO8859-1/LC_TIME \ 113 ${LOCALEDIR}/$$l.US-ASCII/LC_TIME; \ 114 done 115 ln -fs ../en_GB.ISO8859-1/LC_TIME \ 116 ${LOCALEDIR}/en_GB.US-ASCII/LC_TIME 117 ln -fs ../en_US.ISO8859-1/LC_TIME \ 118 ${LOCALEDIR}/en_US.US-ASCII/LC_TIME 119 120.include <bsd.prog.mk> 121