nrelease - fix/improve livecd
[dragonfly.git] / share / i18n / csmapper / CP / Makefile.inc
1 # $NetBSD: Makefile.inc,v 1.6 2008/10/25 22:35:36 apb Exp $
2
3 .PATH: ${.CURDIR}/CP
4
5 SRCS_mapper.dir+=       mapper.dir.CP
6 SRCS_charset.pivot+=    charset.pivot.CP
7 CLEANFILES+=            mapper.dir.CP charset.pivot.CP
8 PART_CP!=               sed '/^\#/d;/^$$/d;' ${.CURDIR}/CP/CP.part
9
10 mapper.dir.CP: ${.CURDIR}/CP/CP.part ${.CURDIR}/CP/mapper.dir.CP.src
11         (\
12             echo "# CP";\
13             for i in ${PART_CP}; do \
14                 f=`echo $$i | sed 's/:/@/'`; \
15                 printf '%-32s%-16s%s\n' CP$$i'/UCS' \
16                     mapper_std CP/CP$$f'%UCS.mps';\
17                 printf '%-32s%-16s%s\n' UCS/CP$$i \
18                     mapper_std CP/UCS%CP$$f'.mps';\
19             done;\
20             cat ${.CURDIR}/CP/mapper.dir.CP.src;\
21             echo;\
22         ) > ${.TARGET}
23
24 charset.pivot.CP: ${.CURDIR}/CP/CP.part ${.CURDIR}/CP/charset.pivot.CP.src
25         (\
26             echo "# CP";\
27             for i in ${PART_CP}; do \
28                 printf "%-32s%-32s%d\n" CP$$i UCS 1;\
29                 printf "%-32s%-32s%d\n" UCS CP$$i 1;\
30             done;\
31             cat ${.CURDIR}/CP/charset.pivot.CP.src;\
32             echo;\
33         ) > ${.TARGET}
34
35 .for i in ${PART_CP}
36 FILES+=         CP${i:S/:/@/}%UCS.mps UCS%CP${i:S/:/@/}.mps
37 CLEANFILES+=    CP${i:S/:/@/}%UCS.mps UCS%CP${i:S/:/@/}.mps
38 FILESDIR_CP${i:S/:/@/}%UCS.mps= ${BINDIR}/CP
39 FILESDIR_UCS%CP${i:S/:/@/}.mps= ${BINDIR}/CP
40 .endfor