2003-10-21 14:01:19 +04:00
|
|
|
# $NetBSD: Makefile.inc,v 1.3 2003/10/21 10:01:21 lukem Exp $
|
2003-06-27 12:39:59 +04:00
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/EBCDIC
|
|
|
|
|
|
|
|
SRCS_mapper.dir+= mapper.dir.EBCDIC
|
|
|
|
SRCS_charset.pivot+= charset.pivot.EBCDIC
|
|
|
|
CLEANFILES+= mapper.dir.EBCDIC charset.pivot.EBCDIC
|
|
|
|
PART_EBCDIC!= sed '/^\#/d;/^$$/d;' ${.CURDIR}/EBCDIC/EBCDIC.part
|
|
|
|
|
|
|
|
mapper.dir.EBCDIC: ${.CURDIR}/EBCDIC/EBCDIC.part
|
2003-10-21 14:01:19 +04:00
|
|
|
${_MKTARGET_CREATE}
|
2003-10-19 18:08:50 +04:00
|
|
|
(\
|
|
|
|
echo "# EBCDIC";\
|
|
|
|
for i in ${PART_EBCDIC}; do \
|
|
|
|
printf '%-32s%-16s%s\n' EBCDIC-$$i'/UCS' \
|
|
|
|
mapper_std EBCDIC/EBCDIC-$$i'%UCS.mps';\
|
|
|
|
printf '%-32s%-16s%s\n' UCS/EBCDIC-$$i \
|
|
|
|
mapper_std EBCDIC/EBCDIC-$$i'%UCS.mps';\
|
|
|
|
done;\
|
|
|
|
echo;\
|
|
|
|
) > ${.TARGET}
|
2003-06-27 12:39:59 +04:00
|
|
|
|
|
|
|
charset.pivot.EBCDIC: ${.CURDIR}/EBCDIC/EBCDIC.part
|
2003-10-21 14:01:19 +04:00
|
|
|
${_MKTARGET_CREATE}
|
2003-10-19 18:08:50 +04:00
|
|
|
(\
|
|
|
|
echo "# EBCDIC";\
|
|
|
|
for i in ${PART_EBCDIC}; do \
|
|
|
|
printf "%-32s%-32s%d\n" EBCDIC-$$i UCS 1;\
|
|
|
|
printf "%-32s%-32s%d\n" UCS EBCDIC-$$i 1;\
|
|
|
|
done;\
|
|
|
|
echo;\
|
|
|
|
) > ${.TARGET}
|
2003-06-27 12:39:59 +04:00
|
|
|
|
|
|
|
.for i in ${PART_EBCDIC}
|
|
|
|
FILES+= EBCDIC-${i:S/:/@/}%UCS.mps
|
|
|
|
FILESDIR_EBCDIC-${i:S/:/@/}%UCS.mps= ${BINDIR}/EBCDIC
|
|
|
|
CLEANFILES+= EBCDIC-${i:S/:/@/}%UCS.mps
|
|
|
|
FILES+= UCS%EBCDIC-${i:S/:/@/}.mps
|
|
|
|
FILESDIR_UCS%EBCDIC-${i:S/:/@/}.mps= ${BINDIR}/EBCDIC
|
|
|
|
CLEANFILES+= UCS%EBCDIC-${i:S/:/@/}.mps
|
|
|
|
.endfor
|