xref: /dragonfly/share/i18n/csmapper/AST/Makefile.inc (revision 3641b7ca)
1# $NetBSD: Makefile.inc,v 1.1 2006/04/01 04:13:21 tnozaki Exp $
2# $DragonFly: src/share/i18n/csmapper/AST/Makefile.inc,v 1.1 2008/04/10 10:21:02 hasso Exp $
3
4.PATH: ${.CURDIR}/AST
5
6SRCS_mapper.dir+=	mapper.dir.AST
7SRCS_charset.pivot+=	charset.pivot.AST
8CLEANFILES+=		mapper.dir.AST charset.pivot.AST
9PART_ARMSCII!=		sed '/^\#/d;/^$$/d;' ${.CURDIR}/AST/ARMSCII.part
10
11.for i in ${PART_ARMSCII}
12.if exists(${.CURDIR}/AST/ARMSCII-$i%UCS.src)
13FILES+=				ARMSCII-$i%UCS.mps
14CLEANFILES+=			ARMSCII-$i%UCS.mps
15FILESDIR_ARMSCII-$i%UCS.mps=	${BINDIR}/AST
16.endif
17.if exists(${.CURDIR}/AST/UCS%ARMSCII-$i.src)
18FILES+=				UCS%ARMSCII-$i.mps
19CLEANFILES+=			UCS%ARMSCII-$i.mps
20FILESDIR_UCS%ARMSCII-$i.mps=	${BINDIR}/AST
21.endif
22.endfor
23
24mapper.dir.AST: ${.CURDIR}/AST/ARMSCII.part
25	${_MKTARGET_CREATE}
26	( \
27	    echo "# AST"; \
28	    for i in ${PART_ARMSCII}; do \
29		printf "%-32s%-32s%s\n" ARMSCII-$$i/UCS mapper_std \
30		    AST/ARMSCII-$$i%UCS.mps; \
31		printf "%-32s%-32s%s\n" UCS/ARMSCII-$$i mapper_std \
32		    AST/UCS%ARMSCII-$$i.mps; \
33	    done; \
34	    echo; \
35	) > ${.TARGET}
36
37charset.pivot.AST: ${.CURDIR}/AST/ARMSCII.part
38	${_MKTARGET_CREATE}
39	( \
40	    echo "# AST"; \
41	    for i in ${PART_ARMSCII}; do \
42		printf "%-32s%-32s%d\n" ARMSCII-$$i UCS 1; \
43		printf "%-32s%-32s%d\n" UCS ARMSCII-$$i 1; \
44	    done; \
45	    echo; \
46	) > ${.TARGET}
47