1# $FreeBSD$ 2 3NOMAN=YES 4CLEANFILES+= ${LOCALES:S/$/.out/g} 5 6LOCALES= af_ZA.ISO8859-1 \ 7 bg_BG.CP1251 \ 8 cs_CZ.ISO8859-2 \ 9 da_DK.ISO8859-1 \ 10 de_DE.ISO8859-1 \ 11 el_GR.ISO8859-7 \ 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 it_IT.ISO8859-1 \ 21 nl_NL.ISO8859-1 \ 22 no_NO.ISO8859-1 \ 23 pl_PL.ISO8859-2 \ 24 pt_PT.ISO8859-1 \ 25 ru_RU.CP866 \ 26 ru_RU.ISO8859-5 \ 27 ru_RU.KOI8-R \ 28 sk_SK.ISO8859-2 \ 29 sl_SI.ISO8859-2 \ 30 sv_SE.ISO8859-1 \ 31 tr_TR.ISO8859-9 \ 32 uk_UA.KOI8-U \ 33 ko_KR.eucKR \ 34 ja_JP.eucJP \ 35 zh_TW.Big5 \ 36 zh_CN.eucCN 37 38LOCALEDIR= ${DESTDIR}/usr/share/locale 39 40ASCIILINKS = en_US 418859_15_LINKS = af_ZA da_DK de_DE en_US es_ES fi_FI fr_FR is_IS is_IS \ 42 it_IT nl_NL no_NO pt_PT sv_SE 43 44USENGLISH= en_US 45USENGLISHLINKS= en_CA en_GB 46GBENGLISH= en_GB 47GBENGLISHLINKS= en_AU en_NZ 48FRENCH= fr_FR 49FRENCHLINKS= fr_CA fr_CH 50GERMAN= de_DE 51GERMANLINKS= de_AT 52 53.SUFFIXES: .src .out 54 55.src.out: 56 grep -v '^#' < ${.IMPSRC} > ${.TARGET} 57 58all: ${LOCALES:S/$/.out/g} 59 60afterinstall: 61.for lang in ${LOCALES} 62 ${INSTALL} ${COPY} -m 644 -o ${BINOWN} -g ${BINGRP} ${lang}.out \ 63 ${LOCALEDIR}/${lang}/LC_NUMERIC 64.endfor 65.for link in ${8859_15_LINKS} 66 ln -sf ../${link}.ISO8859-1/LC_NUMERIC \ 67 ${LOCALEDIR}/${link}.ISO8859-15/LC_NUMERIC 68.endfor 69.for link in ${USENGLISHLINKS} 70 ln -sf ../${USENGLISH}.ISO8859-1/LC_NUMERIC \ 71 ${LOCALEDIR}/${link}.ISO8859-1/LC_NUMERIC 72 ln -sf ../${USENGLISH}.ISO8859-1/LC_NUMERIC \ 73 ${LOCALEDIR}/${link}.ISO8859-15/LC_NUMERIC 74 ln -sf ../${USENGLISH}.ISO8859-1/LC_NUMERIC \ 75 ${LOCALEDIR}/${link}.US-ASCII/LC_NUMERIC 76.endfor 77.for link in ${GBENGLISHLINKS} 78 ln -sf ../${GBENGLISH}.ISO8859-1/LC_NUMERIC \ 79 ${LOCALEDIR}/${link}.ISO8859-1/LC_NUMERIC 80 ln -sf ../${GBENGLISH}.ISO8859-1/LC_NUMERIC \ 81 ${LOCALEDIR}/${link}.ISO8859-15/LC_NUMERIC 82 ln -sf ../${GBENGLISH}.ISO8859-1/LC_NUMERIC \ 83 ${LOCALEDIR}/${link}.US-ASCII/LC_NUMERIC 84.endfor 85.for link in ${FRENCHLINKS} 86 ln -sf ../${FRENCH}.ISO8859-1/LC_NUMERIC \ 87 ${LOCALEDIR}/${link}.ISO8859-1/LC_NUMERIC 88 ln -sf ../${FRENCH}.ISO8859-1/LC_NUMERIC \ 89 ${LOCALEDIR}/${link}.ISO8859-15/LC_NUMERIC 90.endfor 91.for link in ${GERMANLINKS} 92 ln -sf ../${GERMAN}.ISO8859-1/LC_NUMERIC \ 93 ${LOCALEDIR}/${link}.ISO8859-1/LC_NUMERIC 94 ln -sf ../${GERMAN}.ISO8859-1/LC_NUMERIC \ 95 ${LOCALEDIR}/${link}.ISO8859-15/LC_NUMERIC 96.endfor 97.for link in ${ASCIILINKS} 98 ln -sf ../${link}.ISO8859-1/LC_NUMERIC \ 99 ${LOCALEDIR}/${link}.US-ASCII/LC_NUMERIC 100.endfor 101 102.include <bsd.prog.mk> 103