xref: /freebsd/share/i18n/esdb/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1# $NetBSD: Makefile,v 1.14 2007/04/01 18:52:30 tnozaki Exp $
2
3FILESDIR= ${ESDBDIR}
4
5SUBDIR=	APPLE AST BIG5 CP DEC EUC EBCDIC GB GEORGIAN ISO-2022 ISO-8859 \
6	ISO646 KAZAKH KOI MISC TCVN UTF
7SUBDIR_PARALLEL=
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
30.include "./Makefile.inc"
31.include <bsd.prog.mk>
32