summaryrefslogtreecommitdiff
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-05-30 17:41:37 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-05-30 17:41:37 +0000
commit8faa40d1a0ff1956fe7c3d857bf5bcba2272a9d1 (patch)
treee1acd6b92dd5579ff70cbe33a2e9d5c34def606a /Makefile.inc1
parentb1621f22b3de227d332ebd27d7905d2f6483fa0e (diff)
downloadsrc-test2-8faa40d1a0ff1956fe7c3d857bf5bcba2272a9d1.tar.gz
src-test2-8faa40d1a0ff1956fe7c3d857bf5bcba2272a9d1.zip
Switch to mandoc's version of makewhatis(8), whatis(1), apropos(1) utilities.
This change among other things improve search capabilities over the manpages allowing fine grain query. A new build option WITHOUT_MANDOCDB has been added to keep the ancient version of the database and the tools. The plan is to entirely remove this option before 11.0-RELEASE. Differential Revision: https://reviews.freebsd.org/D2603
Notes
Notes: svn path=/head/; revision=283777
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc112
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index e315e2284b9d..1cd019bd8801 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -1363,6 +1363,16 @@ _kerberos5_bootstrap_tools= \
.ORDER: ${_kerberos5_bootstrap_tools:C/^/${_bt}-/g}
.endif
+.if ${MK_MANDOCDB} != "no"
+_makewhatis= lib/libohash \
+ lib/libsqlite3 \
+ lib/libmandoc \
+ usr.bin/mandoc
+${_bt}-usr.bin/mandoc: ${_bt}-lib/libohash ${_bt}-lib/libsqlite3
+.else
+_makewhatis=usr.bin/makewhatis
+.endif
+
# Rebuild up-to-date libmd for xinstall
${_bt}-usr.bin/xinstall: ${_bt}-lib/libmd
@@ -1383,7 +1393,7 @@ bootstrap-tools: .PHONY
${_awk} \
${_cat} \
usr.bin/lorder \
- usr.bin/makewhatis \
+ ${_makewhatis} \
usr.bin/rpcgen \
${_sed} \
${_yacc} \