Expand PMF_FN_* macros.
[netbsd-mini2440.git] / share / i18n / csmapper / KOI / Makefile.inc
blobaa68d034e4995a3737e3375cf7f1b2c3c495c0a0
1 # $NetBSD: Makefile.inc,v 1.2 2006/09/16 08:38:20 tnozaki Exp $
3 .PATH: ${.CURDIR}/KOI
5 SRCS_mapper.dir+=       mapper.dir.KOI
6 SRCS_charset.pivot+=    charset.pivot.KOI
7 CLEANFILES+=            mapper.dir.KOI charset.pivot.KOI
8 MAPS_KOI=               GOST19768-74%UCS.mps    \
9                         UCS%GOST19768-74.mps    \
10                         ISO-5427%UCS.mps        \
11                         UCS%ISO-5427.mps        \
12                         KOI7%UCS.mps            \
13                         UCS%KOI7.mps
14 PART_KOI8!=             ${TOOL_SED} '/^\#/d;/^$$/d;' ${.CURDIR}/KOI/KOI8.part
16 mapper.dir.KOI: ${.CURDIR}/KOI/KOI8.part mapper.dir.KOI.src
17         ${_MKTARGET_CREATE}
18         ( \
19             cat ${.CURDIR}/KOI/mapper.dir.KOI.src; \
20             for i in ${PART_KOI8}; do \
21                 printf "%-31s %-31s %s\n" KOI$$i"EXT/UCS" \
22                         mapper_std KOI/KOI$$i"%UCS.mps"; \
23                 printf "%-31s %-31s %s\n" UCS/KOI$$i"EXT" \
24                         mapper_std KOI/UCS%KOI$$i".mps"; \
25             done; \
26             for i in ${PART_KOI8}; do \
27                 printf "%-31s %-31s %s\n" KOI$$i"/UCS" \
28                         mapper_parallel GOST19768-74/UCS,KOI$$i"EXT/UCS"; \
29                 printf "%-31s %-31s %s\n" UCS/KOI$$i \
30                         mapper_parallel UCS/GOST19768-74,UCS/KOI$$i"EXT"; \
31             done; \
32             echo; \
33         ) > ${.TARGET}
35 charset.pivot.KOI: ${.CURDIR}/KOI/KOI8.part charset.pivot.KOI.src
36         ${_MKTARGET_CREATE}
37         ( \
38             cat ${.CURDIR}/KOI/charset.pivot.KOI.src; \
39             for i in ${PART_KOI8}; do \
40                 printf "%-31s %-31s%d\n" KOI$$i UCS 1; \
41                 printf "%-31s %-31s%d\n" UCS KOI$$i 1; \
42             done; \
43             echo; \
44         ) > ${.TARGET}
46 FILES+=         ${MAPS_KOI}
47 CLEANFILES+=    ${MAPS_KOI}
48 .for i in ${MAPS_KOI}
49 FILESDIR_$i=    ${BINDIR}/KOI
50 .endfor
52 .for i in ${PART_KOI8}
53 FILES+=         KOI${i:S/:/@/}%UCS.mps UCS%KOI${i:S/:/@/}.mps
54 CLEANFILES+=    KOI${i:S/:/@/}%UCS.mps UCS%KOI${i:S/:/@/}.mps
55 FILESDIR_KOI${i:S/:/@/}%UCS.mps=        ${BINDIR}/KOI
56 FILESDIR_UCS%KOI${i:S/:/@/}.mps=        ${BINDIR}/KOI
57 .endfor