1993-07-21 17:18:04 +00:00
|
|
|
.if exists(${.CURDIR}/obj)
|
1994-06-05 20:39:58 +00:00
|
|
|
MAN1= ${.CURDIR}/obj/whatis.1
|
1993-07-21 17:18:04 +00:00
|
|
|
TARG= ${.CURDIR}/obj/whatis
|
|
|
|
.else
|
1994-06-05 20:39:58 +00:00
|
|
|
MAN1= ${.CURDIR}/whatis.1
|
1993-07-21 17:18:04 +00:00
|
|
|
TARG= ${.CURDIR}/whatis
|
|
|
|
.endif
|
1993-07-07 23:07:02 +00:00
|
|
|
|
1994-06-05 20:39:58 +00:00
|
|
|
MANDEPEND= ${MAN1}
|
|
|
|
|
|
|
|
all: ${TARG} ${MAN1}
|
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:
|
1994-06-05 20:39:58 +00:00
|
|
|
@rm -f ${TARG} ${MAN1}
|
1993-07-07 23:07:02 +00:00
|
|
|
|
1993-07-21 17:18:04 +00:00
|
|
|
${TARG}: ${.CURDIR}/whatis.sh
|
1993-07-07 23:07:02 +00:00
|
|
|
sed -e 's,%libdir%,${libdir},' -e 's,%bindir%,${bindir},' \
|
|
|
|
-e 's,%pager%,${pager},' \
|
1993-07-21 17:18:04 +00:00
|
|
|
${.CURDIR}/whatis.sh > ${TARG}
|
1993-07-07 23:07:02 +00:00
|
|
|
|
1994-06-05 20:39:58 +00:00
|
|
|
${MAN1}: ${.CURDIR}/whatis.man
|
1993-07-07 23:07:02 +00:00
|
|
|
sed -e 's,%libdir%,${libdir},' -e 's,%bindir%,${bindir},' \
|
|
|
|
-e 's,%pager%,${pager},' -e 's,%troff%,${troff},' \
|
|
|
|
-e 's,%manpath_config_file%,${manpath_config_file},' \
|
1994-06-05 20:39:58 +00:00
|
|
|
${.CURDIR}/whatis.man > ${MAN1}
|
1993-07-21 17:18:04 +00:00
|
|
|
|
1993-07-23 02:58:20 +00:00
|
|
|
install: ${TARG} maninstall
|
1993-07-23 08:23:19 +00:00
|
|
|
install -c -o bin -g bin -m 555 ${TARG} ${DESTDIR}/usr/bin
|
1993-07-23 02:58:20 +00:00
|
|
|
|
1993-07-07 23:07:02 +00:00
|
|
|
|
1993-07-21 17:18:04 +00:00
|
|
|
.include "../Makefile.inc"
|
1994-06-05 20:39:58 +00:00
|
|
|
.if make(maninstall) || make(install)
|
|
|
|
.include <bsd.man.mk>
|
|
|
|
.endif
|