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 8SUBDIR_PARALLEL= 9 10FILES+= esdb.dir esdb.dir.db esdb.alias esdb.alias.db 11CLEANFILES= ${FILES} 12 13esdb.dir: ${SUBDIR} 14 newfile=$$(for i in ${SUBDIR}; do \ 15 cat $$i/esdb.dir.$$i; \ 16 done); \ 17 [ "$$newfile" = "$$(cat ${.TARGET} 2>/dev/null)" ] || \ 18 printf '%s\n' "$$newfile" >${.TARGET} 19esdb.dir.db: esdb.dir 20 ${MKESDB} -m -o ${.TARGET} ${.ALLSRC} 21 22esdb.alias: ${SUBDIR} 23 newfile=$$(for i in ${SUBDIR}; do \ 24 cat $$i/esdb.alias.$$i; \ 25 done); \ 26 [ "$$newfile" = "$$(cat ${.TARGET} 2>/dev/null)" ] || \ 27 printf '%s\n' "$$newfile" >${.TARGET} 28esdb.alias.db: esdb.alias 29 ${MKESDB} -m -o ${.TARGET} ${.ALLSRC} 30 31all: ${FILES} 32realall: ${FILES} 33 34.include "./Makefile.inc" 35.include <bsd.prog.mk> 36