xref: /dragonfly/share/i18n/csmapper/CP/Makefile.inc (revision 36a3d1d6)
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 $
3
4.PATH: ${.CURDIR}/CP
5
6SRCS_mapper.dir+=	mapper.dir.CP
7SRCS_charset.pivot+=	charset.pivot.CP
8CLEANFILES+=		mapper.dir.CP charset.pivot.CP
9PART_CP!=		sed '/^\#/d;/^$$/d;' ${.CURDIR}/CP/CP.part
10
11mapper.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}
25
26charset.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}
37
38.for i in ${PART_CP}
39FILES+=		CP${i:S/:/@/}%UCS.mps UCS%CP${i:S/:/@/}.mps
40CLEANFILES+=	CP${i:S/:/@/}%UCS.mps UCS%CP${i:S/:/@/}.mps
41FILESDIR_CP${i:S/:/@/}%UCS.mps=	${BINDIR}/CP
42FILESDIR_UCS%CP${i:S/:/@/}.mps=	${BINDIR}/CP
43.endfor
44