1995-07-25 00:37:58 +00:00
|
|
|
# $Id: Makefile,v 1.8 1994/08/28 18:33:42 bde Exp $
|
1994-06-05 20:39:58 +00:00
|
|
|
|
1993-07-21 17:18:04 +00:00
|
|
|
.if exists(${.CURDIR}/obj)
|
1994-06-05 20:39:58 +00:00
|
|
|
MAN1= ${.CURDIR}/obj/apropos.1
|
1993-07-21 17:18:04 +00:00
|
|
|
TARG= ${.CURDIR}/obj/apropos
|
|
|
|
.else
|
1994-06-05 20:39:58 +00:00
|
|
|
MAN1= ${.CURDIR}/apropos.1
|
1993-07-21 17:18:04 +00:00
|
|
|
TARG= ${.CURDIR}/apropos
|
|
|
|
.endif
|
1993-07-07 23:07:02 +00:00
|
|
|
|
1994-06-05 20:39:58 +00:00
|
|
|
MANDEPEND= ${MAN1}
|
|
|
|
|
1994-08-28 18:33:48 +00:00
|
|
|
CLEANFILES+= ${TARG} ${MAN1}
|
|
|
|
|
1994-06-05 20:39:58 +00:00
|
|
|
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
|
|
|
|
|
1993-07-21 17:18:04 +00:00
|
|
|
${TARG}: ${.CURDIR}/apropos.sh
|
1993-07-07 23:07:02 +00:00
|
|
|
sed -e 's,%libdir%,${libdir},' -e 's,%bindir%,${bindir},' \
|
|
|
|
-e 's,%pager%,${pager},' \
|
1994-08-28 18:33:48 +00:00
|
|
|
${.CURDIR}/apropos.sh > ${.TARGET}
|
1993-07-07 23:07:02 +00:00
|
|
|
|
1994-06-05 20:39:58 +00:00
|
|
|
${MAN1}: ${.CURDIR}/apropos.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-08-28 18:33:48 +00:00
|
|
|
${.CURDIR}/apropos.man > ${.TARGET}
|
1993-07-21 17:18:04 +00:00
|
|
|
|
1993-07-23 02:58:20 +00:00
|
|
|
install: ${TARG} maninstall
|
1995-07-25 00:37:58 +00:00
|
|
|
${INSTALL} -c -o bin -g bin -m 555 ${TARG} ${DESTDIR}/usr/bin
|
1993-07-23 02:58:20 +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)
|
1994-06-05 21:57:16 +00:00
|
|
|
.if !defined(NOMAN)
|
1994-06-05 20:39:58 +00:00
|
|
|
.include <bsd.man.mk>
|
1994-06-05 21:57:16 +00:00
|
|
|
.elif !target(maninstall)
|
|
|
|
maninstall:
|
|
|
|
.endif
|
1994-06-05 20:39:58 +00:00
|
|
|
.endif
|
1994-08-28 18:33:48 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|