1# $FreeBSD$ 2# $NetBSD: Makefile,v 1.14 2007/04/01 18:52:30 tnozaki Exp $ 3 4FILESDIR= ${ESDBDIR} 5 6SUBDIR= APPLE AST BIG5 CP DEC EUC EBCDIC GB GEORGIAN ISO-2022 ISO-8859 \ 7 ISO646 KAZAKH KOI MISC TCVN UTF 8 9FILES+= esdb.dir esdb.dir.db esdb.alias esdb.alias.db 10CLEANFILES= ${FILES} 11 12esdb.dir: ${SUBDIR} 13 newfile=$$(for i in ${SUBDIR}; do \ 14 cat $$i/esdb.dir.$$i; \ 15 done); \ 16 [ "$$newfile" = "$$(cat ${.TARGET} 2>/dev/null)" ] || \ 17 printf '%s\n' "$$newfile" >${.TARGET} 18esdb.dir.db: esdb.dir 19 ${MKESDB} -m -o ${.TARGET} ${.ALLSRC} 20 21esdb.alias: ${SUBDIR} 22 newfile=$$(for i in ${SUBDIR}; do \ 23 cat $$i/esdb.alias.$$i; \ 24 done); \ 25 [ "$$newfile" = "$$(cat ${.TARGET} 2>/dev/null)" ] || \ 26 printf '%s\n' "$$newfile" >${.TARGET} 27esdb.alias.db: esdb.alias 28 ${MKESDB} -m -o ${.TARGET} ${.ALLSRC} 29 30all: ${FILES} 31realall: ${FILES} 32 33.include "./Makefile.inc" 34.include <bsd.prog.mk> 35