xref: /freebsd/share/man/Makefile (revision aafa95440e97bf92343c55273c634daf00d46c5c)
1afe61c15SRodney W. Grimes#	@(#)Makefile	8.2 (Berkeley) 4/16/94
2afe61c15SRodney W. Grimes
3aafa9544SRodney W. Grimes# XXX MISSING:	man3f
4aafa9544SRodney W. GrimesSUBDIR=	man1 man3 man4 man5 man7 man8
5afe61c15SRodney W. GrimesSEDF= /usr/share/man/makewhatis.sed
6afe61c15SRodney W. Grimes
7afe61c15SRodney W. Grimesafterinstall:
8afe61c15SRodney W. Grimes	install -c -o ${BINOWN} -g ${BINGRP} -m 444 makewhatis.sed \
9afe61c15SRodney W. Grimes	    ${DESTDIR}${SEDF}
10afe61c15SRodney W. Grimes
11afe61c15SRodney W. Grimesmakedb:
12afe61c15SRodney W. Grimes	find /usr/share/man -type f -name '*.0' -print | \
13afe61c15SRodney W. Grimes	while read file; \
14afe61c15SRodney W. Grimes	do \
15afe61c15SRodney W. Grimes		sed -n -f ${SEDF} $$file; \
16afe61c15SRodney W. Grimes	done | col -b | sort -u > /tmp/whatis.db
17afe61c15SRodney W. Grimes	install -o ${BINOWN} -g ${BINGRP} -m 444 /tmp/whatis.db \
18afe61c15SRodney W. Grimes	    ${DESTDIR}/usr/share/man
19afe61c15SRodney W. Grimes
20afe61c15SRodney W. Grimes.include <bsd.subdir.mk>
21