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