Sync Citrus iconv support with NetBSD.
[dragonfly.git] / share / i18n / csmapper / CP / Makefile.inc
blob33247dda0ec3a80ed5c530a8ed16468ebc51922f
1 # $NetBSD: Makefile.inc,v 1.4 2006/11/04 03:46:19 tnozaki Exp $
2 # $DragonFly: src/share/i18n/csmapper/CP/Makefile.inc,v 1.2 2008/04/10 10:21:04 hasso Exp $
4 .PATH: ${.CURDIR}/CP
6 SRCS_mapper.dir+=       mapper.dir.CP
7 SRCS_charset.pivot+=    charset.pivot.CP
8 CLEANFILES+=            mapper.dir.CP charset.pivot.CP
9 PART_CP!=               sed '/^\#/d;/^$$/d;' ${.CURDIR}/CP/CP.part
11 mapper.dir.CP: ${.CURDIR}/CP/CP.part ${.CURDIR}/CP/mapper.dir.CP.src
12         ${_MKTARGET_CREATE}
13         (\
14             echo "# CP";\
15             for i in ${PART_CP}; do \
16                 f=`echo $$i | sed 's/:/@/'`; \
17                 printf '%-32s%-16s%s\n' CP$$i'/UCS' \
18                     mapper_std CP/CP$$f'%UCS.mps';\
19                 printf '%-32s%-16s%s\n' UCS/CP$$i \
20                     mapper_std CP/UCS%CP$$f'.mps';\
21             done;\
22             cat ${.CURDIR}/CP/mapper.dir.CP.src;\
23             echo;\
24         ) > ${.TARGET}
26 charset.pivot.CP: ${.CURDIR}/CP/CP.part ${.CURDIR}/CP/charset.pivot.CP.src
27         ${_MKTARGET_CREATE}
28         (\
29             echo "# CP";\
30             for i in ${PART_CP}; do \
31                 printf "%-32s%-32s%d\n" CP$$i UCS 1;\
32                 printf "%-32s%-32s%d\n" UCS CP$$i 1;\
33             done;\
34             cat ${.CURDIR}/CP/charset.pivot.CP.src;\
35             echo;\
36         ) > ${.TARGET}
38 .for i in ${PART_CP}
39 FILES+=         CP${i:S/:/@/}%UCS.mps UCS%CP${i:S/:/@/}.mps
40 CLEANFILES+=    CP${i:S/:/@/}%UCS.mps UCS%CP${i:S/:/@/}.mps
41 FILESDIR_CP${i:S/:/@/}%UCS.mps= ${BINDIR}/CP
42 FILESDIR_UCS%CP${i:S/:/@/}.mps= ${BINDIR}/CP
43 .endfor