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