NetBSD/share/man/Makefile
joerg 410d0f4380 Import the new apropos/whatis.
This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.
2012-02-07 19:13:24 +00:00

28 lines
553 B
Makefile

# $NetBSD: Makefile,v 1.30 2012/02/07 19:13:31 joerg Exp $
# from: @(#)Makefile 8.2 (Berkeley) 4/16/94
.include <bsd.own.mk>
.if ${MKSHARE} != "no"
SUBDIR= man0 man1 man2 man3 man4 man5 man6 man7 man8 man9
WHATISDBDIR?= /usr/share/man
.if ${MKMAKEMANDB} == "no"
makedb:
${TOOL_MAKEWHATIS} ${DESTDIR}${WHATISDBDIR}
.if ${MKUNPRIVED} != "no"
echo ".${WHATISDBDIR}/whatis.db type=file mode=0444 uname=${BINOWN} gname=${BINGRP}" \
| ${METALOG.add}
.endif
.else
makedb:
.endif
.else
makedb:
.endif
.include <bsd.subdir.mk>
.include <bsd.sys.mk>