NetBSD/share/i18n/csmapper/EBCDIC/Makefile.inc
lukem 130ab7336b Rework how MAKEVERBOSE operates:
*	Don't bother prefixing commands with a line of  ${_MKCMD}\
	and instead rely upon "make -s".  This is less intrusive on
	all the Makefiles than the former.  Idea from David Laight.

    *	Rename the variables use to print messages.  The scheme now is:
	    _MKMSG_FOO		Run  _MKMSG 'foo'
	    _MKTARGET_FOO	Run  _MKMSG_FOO ${.TARGET}
	From discussion with Alistair Crooks.
2003-10-21 10:01:19 +00:00

42 lines
1.2 KiB
Makefile

# $NetBSD: Makefile.inc,v 1.3 2003/10/21 10:01:21 lukem Exp $
.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
${_MKTARGET_CREATE}
(\
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}
charset.pivot.EBCDIC: ${.CURDIR}/EBCDIC/EBCDIC.part
${_MKTARGET_CREATE}
(\
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}
.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