freebsd-dev/gnu/usr.bin/man/apropos/Makefile

45 lines
1007 B
Makefile
Raw Normal View History

# $Id: Makefile,v 1.8 1994/08/28 18:33:42 bde Exp $
.if exists(${.CURDIR}/obj)
MAN1= ${.CURDIR}/obj/apropos.1
TARG= ${.CURDIR}/obj/apropos
.else
MAN1= ${.CURDIR}/apropos.1
TARG= ${.CURDIR}/apropos
.endif
1993-07-07 23:07:02 +00:00
MANDEPEND= ${MAN1}
CLEANFILES+= ${TARG} ${MAN1}
all: ${TARG} ${MAN1}
1993-07-07 23:07:02 +00:00
depend rcsfreeze tags all:
1993-07-07 23:07:02 +00:00
@echo -n
${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},' \
${.CURDIR}/apropos.sh > ${.TARGET}
1993-07-07 23:07:02 +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},' \
${.CURDIR}/apropos.man > ${.TARGET}
1993-07-23 02:58:20 +00:00
install: ${TARG} maninstall
${INSTALL} -c -o bin -g bin -m 555 ${TARG} ${DESTDIR}/usr/bin
1993-07-23 02:58:20 +00:00
.include "../Makefile.inc"
.if make(maninstall) || make(install)
.if !defined(NOMAN)
.include <bsd.man.mk>
.elif !target(maninstall)
maninstall:
.endif
.endif
.include <bsd.prog.mk>