Expand PMF_FN_* macros.
[netbsd-mini2440.git] / share / i18n / csmapper / EBCDIC / Makefile.inc
blob5806ef82da40e78b8f29d75b5b30b3655052d793
1 # $NetBSD: Makefile.inc,v 1.3 2003/10/21 10:01:21 lukem Exp $
3 .PATH: ${.CURDIR}/EBCDIC
5 SRCS_mapper.dir+=       mapper.dir.EBCDIC
6 SRCS_charset.pivot+=    charset.pivot.EBCDIC
7 CLEANFILES+=            mapper.dir.EBCDIC charset.pivot.EBCDIC
8 PART_EBCDIC!=           ${TOOL_SED} '/^\#/d;/^$$/d;' \
9                                 ${.CURDIR}/EBCDIC/EBCDIC.part
11 mapper.dir.EBCDIC: ${.CURDIR}/EBCDIC/EBCDIC.part
12         ${_MKTARGET_CREATE}
13         (\
14             echo "# EBCDIC";\
15             for i in ${PART_EBCDIC}; do \
16                 printf '%-32s%-16s%s\n' EBCDIC-$$i'/UCS' \
17                     mapper_std EBCDIC/EBCDIC-$$i'%UCS.mps';\
18                 printf '%-32s%-16s%s\n' UCS/EBCDIC-$$i \
19                     mapper_std EBCDIC/EBCDIC-$$i'%UCS.mps';\
20             done;\
21             echo;\
22         ) > ${.TARGET}
24 charset.pivot.EBCDIC: ${.CURDIR}/EBCDIC/EBCDIC.part
25         ${_MKTARGET_CREATE}
26         (\
27             echo "# EBCDIC";\
28             for i in ${PART_EBCDIC}; do \
29                 printf "%-32s%-32s%d\n" EBCDIC-$$i UCS 1;\
30                 printf "%-32s%-32s%d\n" UCS EBCDIC-$$i 1;\
31             done;\
32             echo;\
33         ) > ${.TARGET}
35 .for i in ${PART_EBCDIC}
36 FILES+=                                 EBCDIC-${i:S/:/@/}%UCS.mps
37 FILESDIR_EBCDIC-${i:S/:/@/}%UCS.mps=    ${BINDIR}/EBCDIC
38 CLEANFILES+=                            EBCDIC-${i:S/:/@/}%UCS.mps
39 FILES+=                                 UCS%EBCDIC-${i:S/:/@/}.mps
40 FILESDIR_UCS%EBCDIC-${i:S/:/@/}.mps=    ${BINDIR}/EBCDIC
41 CLEANFILES+=                            UCS%EBCDIC-${i:S/:/@/}.mps
42 .endfor