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