b48301f54f
sed goes into an obj dir, if it exists, instead of the src dir.
18 lines
446 B
Makefile
18 lines
446 B
Makefile
# @(#)Makefile 5.6 (Berkeley) 6/23/90
|
|
|
|
NOMAN= noman
|
|
CLEANFILES= makewhatis
|
|
|
|
beforeinstall: makewhatis
|
|
install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
|
|
makewhatis ${DESTDIR}${BINDIR}
|
|
|
|
.include <bsd.prog.mk>
|
|
|
|
makewhatis: makewhatis.sh
|
|
sed -e 's/%sections%/ "1", "n", "l", "6", "8", "2", "3", "4", "5", "7", "p", "o", NULL/' \
|
|
-e 's,%zcat%,${zcat},' \
|
|
-e 's,%compext%,${compext},' \
|
|
${.CURDIR}/makewhatis.sh > makewhatis
|
|
|