aboutsummaryrefslogtreecommitdiff
path: root/share/man/Makefile
blob: 8af1d3f8e5ed5c7ec29bcea99cb3d563c180ec2e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#	@(#)Makefile	8.2 (Berkeley) 4/16/94

# XXX MISSING:	man3f
SUBDIR=	man1 man3 man4 man5 man7 man8
SEDF= /usr/share/man/makewhatis.sed

afterinstall:
	install -c -o ${BINOWN} -g ${BINGRP} -m 444 makewhatis.sed \
	    ${DESTDIR}${SEDF}

makedb:
	find /usr/share/man -type f -name '*.0' -print | \
	while read file; \
	do \
		sed -n -f ${SEDF} $$file; \
	done | col -b | sort -u > /tmp/whatis.db
	install -o ${BINOWN} -g ${BINGRP} -m 444 /tmp/whatis.db \
	    ${DESTDIR}/usr/share/man

.include <bsd.subdir.mk>