summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/man/makewhatis/Makefile
blob: ea9c4e450ba03d6ff7372bbe45d3c4c84769bd5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#       @(#)Makefile    5.6 (Berkeley) 6/23/90

NOMAN=	noman
CLEANFILES= makewhatis

beforeinstall: makewhatis
	install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
	     ${.CURDIR}/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

OpenPOWER on IntegriCloud