1# $NetBSD: Makefile,v 1.13 2007/03/13 16:34:37 tnozaki Exp $ 2 3FILESDIR= ${CSMAPPERDIR} 4 5SUBDIR= APPLE AST BIG5 CNS CP EBCDIC GB GEORGIAN ISO646 ISO-8859 JIS \ 6 KAZAKH KOI KS MISC TCVN 7SUBDIR_PARALLEL= 8 9mapper.dir: ${SUBDIR} 10 newfile=$$(for i in ${SUBDIR}; do \ 11 cat $$i/mapper.dir.$$i; \ 12 done; cat ${.CURDIR}/mapper.dir.src); \ 13 [ "$$newfile" = "$$(cat ${.TARGET} 2>/dev/null)" ] || \ 14 printf '%s\n' "$$newfile" >${.TARGET} 15mapper.dir.db: mapper.dir 16 ${MKCSMAPPER} -m -o ${.TARGET} ${.ALLSRC} 17 18FILES+= mapper.dir mapper.dir.db 19CLEANFILES+= mapper.dir mapper.dir.db 20 21charset.pivot: ${SUBDIR} 22 newfile=$$(for i in ${SUBDIR}; do \ 23 cat $$i/charset.pivot.$$i; \ 24 done; cat ${.CURDIR}/charset.pivot.src); \ 25 [ "$$newfile" = "$$(cat ${.TARGET} 2>/dev/null)" ] || \ 26 printf '%s\n' "$$newfile" >${.TARGET} 27charset.pivot.pvdb: charset.pivot 28 ${MKCSMAPPER} -p -o ${.TARGET} ${.ALLSRC} 29 30FILES+= charset.pivot charset.pivot.pvdb 31CLEANFILES+= charset.pivot charset.pivot.pvdb 32 33.include "./Makefile.inc" 34.include <bsd.prog.mk> 35