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