[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / share / man

File: [cvs.NetBSD.org] / src / share / man / Makefile (download)

Revision 1.23, Sat Jun 15 01:46:16 2002 UTC (21 years, 10 months ago) by matt
Branch: MAIN
Changes since 1.22: +2 -1 lines

Include <bsd.sys.mk> so CAT is defined in the UNPRIVED= USETOOLS=no case.

#	$NetBSD: Makefile,v 1.23 2002/06/15 01:46:16 matt 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 "${DESTDIR}/usr/share/man/whatis.db type=file mode=0444 uname=root gname=wheel" | \
		sed -e 's|^/|./|g' -e 's|//|/|g' | ${CAT} -l >> ${METALOG}
.endif
.else
makedb:
.endif

.include <bsd.subdir.mk>
.include <bsd.sys.mk>