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