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