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