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