1993-07-21 17:18:04 +00:00
|
|
|
.if exists(${.CURDIR}/obj)
|
|
|
|
TARG= ${.CURDIR}/obj/makewhatis
|
|
|
|
.else
|
|
|
|
TARG= ${.CURDIR}/makewhatis
|
|
|
|
.endif
|
1993-07-07 23:07:02 +00:00
|
|
|
|
1993-07-21 17:18:04 +00:00
|
|
|
all: ${TARG}
|
1993-07-07 23:07:02 +00:00
|
|
|
|
1993-07-21 17:18:04 +00:00
|
|
|
depend rcsfreeze tags all:
|
1993-07-07 23:07:02 +00:00
|
|
|
@echo -n
|
|
|
|
|
|
|
|
cleandir: clean
|
1993-07-21 17:18:04 +00:00
|
|
|
cd ${.CURDIR}; rm -rf obj;
|
1993-07-07 23:07:02 +00:00
|
|
|
|
|
|
|
clean:
|
1993-07-21 17:18:04 +00:00
|
|
|
@rm -f ${TARG}
|
1993-07-07 23:07:02 +00:00
|
|
|
|
|
|
|
install:
|
1993-07-21 17:18:04 +00:00
|
|
|
install -c -o bin -g bin -m 444 ${TARG} /usr/bin
|
|
|
|
|
|
|
|
${TARG}: ${.CURDIR}/makewhatis.sh
|
|
|
|
sed -e 's/%sections%/ "1", "n", "l", "6", "8", "2", "3", "4", "5", "7", "p", "o", NULL/' ${.CURDIR}/makewhatis.sh > ${TARG}
|
1993-07-07 23:07:02 +00:00
|
|
|
|
1993-07-21 17:18:04 +00:00
|
|
|
.include "../Makefile.inc"
|