f7044509cb
Since iconv was enabled (r254273, August 13), it has been impossible to installworld using a read-only obj tree. This is common with NFS. Parts of share/i18n unconditionally rebuild files like mapper.dir during installation. This patch ensures the files like mapper.dir are not rewritten with the same contents. Tested by: joel Approved by: re (hrs)
35 lines
873 B
Makefile
35 lines
873 B
Makefile
# $FreeBSD$
|
|
# $NetBSD: Makefile,v 1.14 2007/04/01 18:52:30 tnozaki Exp $
|
|
|
|
FILESDIR= ${ESDBDIR}
|
|
|
|
SUBDIR= APPLE AST BIG5 CP DEC EUC EBCDIC GB GEORGIAN ISO-2022 ISO-8859 \
|
|
ISO646 KAZAKH KOI MISC TCVN UTF
|
|
|
|
FILES+= esdb.dir esdb.dir.db esdb.alias esdb.alias.db
|
|
CLEANFILES= ${FILES}
|
|
|
|
esdb.dir: ${SUBDIR}
|
|
newfile=$$(for i in ${SUBDIR}; do \
|
|
cat $$i/esdb.dir.$$i; \
|
|
done); \
|
|
[ "$$newfile" = "$$(cat ${.TARGET} 2>/dev/null)" ] || \
|
|
printf '%s\n' "$$newfile" >${.TARGET}
|
|
esdb.dir.db: esdb.dir
|
|
${MKESDB} -m -o ${.TARGET} ${.ALLSRC}
|
|
|
|
esdb.alias: ${SUBDIR}
|
|
newfile=$$(for i in ${SUBDIR}; do \
|
|
cat $$i/esdb.alias.$$i; \
|
|
done); \
|
|
[ "$$newfile" = "$$(cat ${.TARGET} 2>/dev/null)" ] || \
|
|
printf '%s\n' "$$newfile" >${.TARGET}
|
|
esdb.alias.db: esdb.alias
|
|
${MKESDB} -m -o ${.TARGET} ${.ALLSRC}
|
|
|
|
all: ${FILES}
|
|
realall: ${FILES}
|
|
|
|
.include "./Makefile.inc"
|
|
.include <bsd.prog.mk>
|