069fcad2d9
more like binaries. This is hard to do using a general rules because the natural `.sh:' rule has a null suffix and null suffixes are broken. (With 1.1.5's make they sometimes work and sometimes cause core dumps. 2.0's make has a botched fixed and they never work.)
21 lines
468 B
Makefile
21 lines
468 B
Makefile
# @(#)Makefile 5.6 (Berkeley) 6/23/90
|
|
|
|
FILES= makewhatis
|
|
NOMAN= noman
|
|
|
|
CLEANFILES+= ${FILES}
|
|
|
|
all: ${FILES}
|
|
|
|
makewhatis: makewhatis.sh
|
|
sed -e 's/%sections%/ "1", "n", "l", "6", "8", "2", "3", "4", "5", "7", "p", "o", NULL/' \
|
|
-e 's,%compext%,${compext},' \
|
|
-e 's,%zcat%,${zcat},' \
|
|
${.CURDIR}/${.TARGET}.sh > ${.TARGET}
|
|
|
|
install:
|
|
install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
|
|
${FILES} ${DESTDIR}${BINDIR}
|
|
|
|
.include <bsd.prog.mk>
|