Makefile revision 1.21
1# $NetBSD: Makefile,v 1.21 2006/03/14 16:16:45 tnozaki Exp $ 2 3NOMAN= # defined 4 5# pull LOCALEDIR and other declarations 6.include <bsd.own.mk> 7 8FILESOWN= ${LOCALEOWN} 9FILESGRP= ${LOCALEGRP} 10FILESMODE= ${LOCALEMODE} 11 12LOCALES += be_BY.CP1251 13 LOCALESRC_be_BY.CP1251 = bg_BG.CP1251 14 15LOCALES += bg_BG.CP1251 16 LOCALESRC_bg_BG.CP1251 = bg_BG.CP1251 17 18LOCALES += ca_ES.ISO8859-1 19 LOCALESRC_ca_ES.ISO8859-1 = en_US.ISO_8859-1 20 21LOCALES += ca_ES.ISO8859-15 22 LOCALESRC_ca_ES.ISO8859-15 = en_US.DIS_8859-15 23 24LOCALES += cs_CZ.ISO8859-2 25 LOCALESRC_cs_CZ.ISO8859-2 = en_US.ISO_8859-2 26 27LOCALES += da_DK.ISO8859-1 28 LOCALESRC_da_DK.ISO8859-1 = en_US.ISO_8859-1 29 30LOCALES += da_DK.ISO8859-15 31 LOCALESRC_da_DK.ISO8859-15 = en_US.DIS_8859-15 32 33LOCALES += de_AT.ISO8859-1 34 LOCALESRC_de_AT.ISO8859-1 = en_US.ISO_8859-1 35 36LOCALES += de_AT.ISO8859-15 37 LOCALESRC_de_AT.ISO8859-15 = en_US.DIS_8859-15 38 39LOCALES += de_CH.ISO8859-1 40 LOCALESRC_de_CH.ISO8859-1 = en_US.ISO_8859-1 41 42LOCALES += de_CH.ISO8859-15 43 LOCALESRC_de_CH.ISO8859-15 = en_US.DIS_8859-15 44 45LOCALES += de_DE.ISO8859-1 46 LOCALESRC_de_DE.ISO8859-1 = en_US.ISO_8859-1 47 48LOCALES += de_DE.ISO8859-15 49 LOCALESRC_de_DE.ISO8859-15 = en_US.DIS_8859-15 50 51LOCALES += el_GR.ISO8859-7 52 LOCALESRC_el_GR.ISO8859-7 = el_GR.ISO8859-7 53 54LOCALES += en_AU.ISO8859-1 55 LOCALESRC_en_AU.ISO8859-1 = en_US.ISO_8859-1 56 57LOCALES += en_AU.ISO8859-15 58 LOCALESRC_en_AU.ISO8859-15 = en_US.DIS_8859-15 59 60LOCALES += en_CA.ISO8859-1 61 LOCALESRC_en_CA.ISO8859-1 = en_US.ISO_8859-1 62 63LOCALES += en_CA.ISO8859-15 64 LOCALESRC_en_CA.ISO8859-15 = en_US.DIS_8859-15 65 66LOCALES += en_GB.ISO8859-1 67 LOCALESRC_en_GB.ISO8859-1 = en_US.ISO_8859-1 68 69LOCALES += en_GB.ISO8859-15 70 LOCALESRC_en_GB.ISO8859-15 = en_US.DIS_8859-15 71 72LOCALES += en_US.ISO8859-1 73 LOCALESRC_en_US.ISO8859-1 = en_US.ISO_8859-1 74 75LOCALES += en_US.ISO8859-15 76 LOCALESRC_en_US.ISO8859-15 = en_US.DIS_8859-15 77 78LOCALES += en_US.UTF-8 79 LOCALESRC_en_US.UTF-8 = en_US.UTF-8 80 81LOCALES += es_ES.ISO8859-1 82 LOCALESRC_es_ES.ISO8859-1 = en_US.ISO_8859-1 83 84LOCALES += es_ES.ISO8859-15 85 LOCALESRC_es_ES.ISO8859-15 = en_US.DIS_8859-15 86 87LOCALES += fi_FI.ISO8859-1 88 LOCALESRC_fi_FI.ISO8859-1 = en_US.ISO_8859-1 89 90LOCALES += fi_FI.ISO8859-15 91 LOCALESRC_fi_FI.ISO8859-15 = en_US.DIS_8859-15 92 93LOCALES += fr_BE.ISO8859-1 94 LOCALESRC_fr_BE.ISO8859-1 = en_US.ISO_8859-1 95 96LOCALES += fr_BE.ISO8859-15 97 LOCALESRC_fr_BE.ISO8859-15 = en_US.DIS_8859-15 98 99LOCALES += fr_CA.ISO8859-1 100 LOCALESRC_fr_CA.ISO8859-1 = en_US.ISO_8859-1 101 102LOCALES += fr_CA.ISO8859-15 103 LOCALESRC_fr_CA.ISO8859-15 = en_US.DIS_8859-15 104 105LOCALES += fr_CH.ISO8859-1 106 LOCALESRC_fr_CH.ISO8859-1 = en_US.ISO_8859-1 107 108LOCALES += fr_CH.ISO8859-15 109 LOCALESRC_fr_CH.ISO8859-15 = en_US.DIS_8859-15 110 111LOCALES += fr_FR.ISO8859-1 112 LOCALESRC_fr_FR.ISO8859-1 = en_US.ISO_8859-1 113 114LOCALES += fr_FR.ISO8859-15 115 LOCALESRC_fr_FR.ISO8859-15 = en_US.DIS_8859-15 116 117LOCALES += hr_HR.ISO8859-2 118 LOCALESRC_hr_HR.ISO8859-2 = en_US.ISO_8859-2 119 120LOCALES += hu_HU.ISO8859-2 121 LOCALESRC_hu_HU.ISO8859-2 = en_US.ISO_8859-2 122 123LOCALES += hy_AM.ARMSCII-8 124 LOCALESRC_hy_AM.ARMSCII-8 = hy_AM.ARMSCII-8 125 126LOCALES += is_IS.ISO8859-1 127 LOCALESRC_is_IS.ISO8859-1 = en_US.ISO_8859-1 128 129LOCALES += is_IS.ISO8859-15 130 LOCALESRC_is_IS.ISO8859-15 = en_US.DIS_8859-15 131 132LOCALES += it_CH.ISO8859-1 133 LOCALESRC_it_CH.ISO8859-1 = en_US.ISO_8859-1 134 135LOCALES += it_CH.ISO8859-15 136 LOCALESRC_it_CH.ISO8859-15 = en_US.DIS_8859-15 137 138LOCALES += it_IT.ISO8859-1 139 LOCALESRC_it_IT.ISO8859-1 = en_US.ISO_8859-1 140 141LOCALES += it_IT.ISO8859-15 142 LOCALESRC_it_IT.ISO8859-15 = en_US.DIS_8859-15 143 144LOCALES += ja_JP.ct 145 LOCALESRC_ja_JP.ct = ja_JP.CTEXT 146 147LOCALES += ja_JP.eucJP 148 LOCALESRC_ja_JP.eucJP = ja_JP.eucJP 149 150LOCALES += ja_JP.ISO2022-JP 151 LOCALESRC_ja_JP.ISO2022-JP = ja_JP.ISO-2022-JP 152 153LOCALES += ja_JP.ISO2022-JP2 154 LOCALESRC_ja_JP.ISO2022-JP2 = ja_JP.ISO-2022-JP-2 155 156LOCALES += ja_JP.SJIS 157 LOCALESRC_ja_JP.SJIS = ja_JP.SJIS 158 159LOCALES += ko_KR.eucKR 160 LOCALESRC_ko_KR.eucKR = ko_KR.eucKR 161 162LOCALES += lt_LT.ISO8859-4 163 LOCALESRC_lt_LT.ISO8859-4 = en_US.ISO_8859-4 164 165LOCALES += lt_LT.ISO8859-13 166 LOCALESRC_lt_LT.ISO8859-13 = lt_LT.ISO8859-13 167 168LOCALES += nl_BE.ISO8859-1 169 LOCALESRC_nl_BE.ISO8859-1 = en_US.ISO_8859-1 170 171LOCALES += nl_BE.ISO8859-15 172 LOCALESRC_nl_BE.ISO8859-15 = en_US.DIS_8859-15 173 174LOCALES += nl_NL.ISO8859-1 175 LOCALESRC_nl_NL.ISO8859-1 = en_US.ISO_8859-1 176 177LOCALES += nl_NL.ISO8859-15 178 LOCALESRC_nl_NL.ISO8859-15 = en_US.DIS_8859-15 179 180LOCALES += no_NO.ISO8859-1 181 LOCALESRC_no_NO.ISO8859-1 = en_US.ISO_8859-1 182 183LOCALES += no_NO.ISO8859-15 184 LOCALESRC_no_NO.ISO8859-15 = en_US.DIS_8859-15 185 186LOCALES += pl_PL.ISO8859-2 187 LOCALESRC_pl_PL.ISO8859-2 = en_US.ISO_8859-2 188 189LOCALES += pt_PT.ISO8859-1 190 LOCALESRC_pt_PT.ISO8859-1 = en_US.ISO_8859-1 191 192LOCALES += pt_PT.ISO8859-15 193 LOCALESRC_pt_PT.ISO8859-15 = en_US.DIS_8859-15 194 195LOCALES += ru_BY.CP1251 196 LOCALESRC_ru_BY.CP1251 = bg_BG.CP1251 197 198LOCALES += ru_RU.CP1251 199 LOCALESRC_ru_RU.CP1251 = bg_BG.CP1251 200 201LOCALES += ru_RU.CP866 202 LOCALESRC_ru_RU.CP866 = ru_RU.CP866 203 204LOCALES += ru_RU.KOI8-R 205 LOCALESRC_ru_RU.KOI8-R = ru_RU.KOI8-R 206 207LOCALES += ru_RU.ISO8859-5 208 LOCALESRC_ru_RU.ISO8859-5 = ru_RU.ISO_8859-5 209 210LOCALES += sk_SK.ISO8859-2 211 LOCALESRC_sk_SK.ISO8859-2 = en_US.ISO_8859-2 212 213LOCALES += sl_SI.ISO8859-2 214 LOCALESRC_sl_SI.ISO8859-2 = en_US.ISO_8859-2 215 216LOCALES += sv_SE.ISO8859-1 217 LOCALESRC_sv_SE.ISO8859-1 = en_US.ISO_8859-1 218 219LOCALES += sv_SE.ISO8859-15 220 LOCALESRC_sv_SE.ISO8859-15 = en_US.DIS_8859-15 221 222LOCALES += uk_UA.KOI8-U 223 LOCALESRC_uk_UA.KOI8-U = uk_UA.KOI8-U 224 225LOCALES += zh_CN.eucCN 226 LOCALESRC_zh_CN.eucCN = zh_CN.eucCN 227 228LOCALES += zh_CN.GB18030 229 LOCALESRC_zh_CN.GB18030 = zh_CN.GB18030 230 231LOCALES += zh_TW.Big5 232 LOCALESRC_zh_TW.Big5 = zh_TW.BIG5 233 234# XXX: EUC-TW is not EUC! 235LOCALES += zh_TW.eucTW 236 LOCALESRC_zh_TW.eucTW = zh_TW.eucTW 237 238all: ${LOCALES:S/$/.out/g} 239realall: ${LOCALES:S/$/.out/g} 240 241.for locale in ${LOCALES} 242LOCALESRCS+= ${LOCALESRC_${locale}} 243.endfor 244CLEANFILES+= ${LOCALES:S/$/.out/g} 245 246# TODO: more use of symlinks? 247FILES= ${LOCALES:S/$/.out/g} 248.for locale in ${LOCALES} 249FILESDIR_${locale}.out= ${LOCALEDIR}/${locale} 250FILESNAME_${locale}.out= LC_CTYPE 251.endfor 252 253# dependencies 254.for locale in ${LOCALES} 255${locale}.out: ${LOCALESRC_${locale}}.src \ 256 ${NETBSDSRCDIR}/lib/libc/locale/runetable.c 257 ${_MKTARGET_CREATE} 258 ${CPP} -I${.CURDIR} < ${.CURDIR}/${LOCALESRC_${locale}}.src | \ 259 sed -e '/^#/d' | ${TOOL_MKLOCALE} -o ${.TARGET} 260.endfor 261 262.SUFFIXES: .src .out 263.src.out: 264 ${_MKTARGET_CREATE} 265 ${CPP} -I${.CURDIR} < ${.IMPSRC} | sed -e '/^#/d' | \ 266 ${TOOL_MKLOCALE} -o ${.TARGET} 267 268# does not work 269#depend: 270# ${MKDEP} -a ${MKDEPFLAGS} \ 271# ${CPPFLAGS:M-[ID]*} ${CPPFLAGS} \ 272# ${LOCALESRCS:S/$/.src/g:S/^/${.CURDIR}\//g} 273 274.include <bsd.prog.mk> 275