144b55005f
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading ${DESTDIR} from the metalogged path - provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make it easier to replace manual metalog manipulation in the future. - with manual metalog additions, don't add the leading ${DESTDIR} in the path - in maketars, use "mtree -C ..." instead of "mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,"; Benefits: - maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds on a P3-600. (This also benefits "make installworld" at the top level.) - ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}" on all the pathnames, and it's smaller as well.
22 lines
488 B
Makefile
22 lines
488 B
Makefile
# $NetBSD: Makefile,v 1.24 2002/12/23 06:52:50 lukem Exp $
|
|
# from: @(#)Makefile 8.2 (Berkeley) 4/16/94
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
.if ${MKSHARE} != "no"
|
|
SUBDIR= man0 man1 man3 man4 man5 man6 man7 man8 man9
|
|
MAKEWHATIS?= /usr/libexec/makewhatis
|
|
|
|
makedb:
|
|
${MAKEWHATIS} ${DESTDIR}/usr/share/man
|
|
.if defined(UNPRIVED)
|
|
echo "./usr/share/man/whatis.db type=file mode=0444 uname=root gname=wheel" \
|
|
| ${METALOG.add}
|
|
.endif
|
|
.else
|
|
makedb:
|
|
.endif
|
|
|
|
.include <bsd.subdir.mk>
|
|
.include <bsd.sys.mk>
|