1 # $NetBSD: Makefile.inc,v 1.3 2003/10/21 10:01:21 lukem Exp $
3 .PATH: ${.CURDIR}/ISO-8859
5 SRCS_mapper.dir+= mapper.dir.ISO-8859
6 SRCS_charset.pivot+= charset.pivot.ISO-8859
7 CLEANFILES+= mapper.dir.ISO-8859 charset.pivot.ISO-8859
8 PART_ISO-8859!= ${TOOL_SED} '/^\#/d;/^$$/d;' \
9 ${.CURDIR}/ISO-8859/ISO-8859.part
11 .for i in ${PART_ISO-8859}
12 .if exists(${.CURDIR}/ISO-8859/ISO-8859-$i%UCS.src)
13 FILES+= ISO-8859-$i%UCS.mps
14 CLEANFILES+= ISO-8859-$i%UCS.mps
15 FILESDIR_ISO-8859-$i%UCS.mps= ${BINDIR}/ISO-8859
17 .if exists(${.CURDIR}/ISO-8859/UCS%ISO-8859-$i.src)
18 FILES+= UCS%ISO-8859-$i.mps
19 CLEANFILES+= UCS%ISO-8859-$i.mps
20 FILESDIR_UCS%ISO-8859-$i.mps= ${BINDIR}/ISO-8859
24 mapper.dir.ISO-8859: ${.CURDIR}/ISO-8859/ISO-8859.part
28 printf '%-32s%-16s\n' ISO-8859-1/UCS mapper_none;\
29 printf '%-32s%-16s%s\n' UCS/ISO-8859-1 mapper_zone 0x00-0xFF;\
30 for i in ${PART_ISO-8859}; do \
31 printf '%-32s%-16s%s\n' ISO-8859-$$i'/UCS' mapper_std \
32 ISO-8859/ISO-8859-$$i'%UCS.mps';\
33 printf '%-32s%-16s%s\n' UCS/ISO-8859-$$i mapper_std \
34 'ISO-8859/UCS%ISO-8859-'$$i'.mps';\
35 printf '%-32s%-16s%s\n' ISO-8859-$$i':GR/ISO-8859-'$$i \
36 mapper_zone '0x00 - 0x7F : +0x80';\
37 printf '%-32s%-16s%s\n' ISO-8859-$$i'/ISO-8859-'$$i':GR' \
38 mapper_zone '0x80 - 0xFF : -0x80';\
39 printf '%-32s%-16s%s\n' ISO-8859-$$i':GR/UCS' mapper_serial \
40 ISO-8859-$$i':GR/ISO-8859-'$$i',ISO-8859-'$$i'/UCS';\
41 printf '%-32s%-16s%s\n' UCS/ISO-8859-$$i':GR' mapper_serial \
42 UCS/ISO-8859-$$i',ISO-8859-'$$i'/ISO-8859-'$$i':GR';\
47 charset.pivot.ISO-8859: ${.CURDIR}/ISO-8859/ISO-8859.part
51 for i in ${PART_ISO-8859}; do \
52 printf "%-32s%-32s%d\n" ISO-8859-$$i UCS 1;\
53 printf "%-32s%-32s%d\n" UCS ISO-8859-$$i 1;\
54 printf "%-32s%-32s%d\n" ISO-8859-$$i':GR' UCS 1;\
55 printf "%-32s%-32s%d\n" UCS ISO-8859-$$i':GR' 1;\