freebsd_amp_hwpstate/gnu/usr.bin/man/whatis/Makefile

41 lines
894 B
Makefile
Raw Normal View History

.if exists(${.CURDIR}/obj)
MAN1= ${.CURDIR}/obj/whatis.1
TARG= ${.CURDIR}/obj/whatis
.else
MAN1= ${.CURDIR}/whatis.1
TARG= ${.CURDIR}/whatis
.endif
1993-07-07 23:07:02 +00:00
MANDEPEND= ${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
cleandir: clean
cd ${.CURDIR}; rm -rf obj;
1993-07-07 23:07:02 +00:00
clean:
@rm -f ${TARG} ${MAN1}
1993-07-07 23:07:02 +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},' \
${.CURDIR}/whatis.sh > ${TARG}
1993-07-07 23:07:02 +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},' \
${.CURDIR}/whatis.man > ${MAN1}
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
1993-07-07 23:07:02 +00:00
.include "../Makefile.inc"
.if make(maninstall) || make(install)
.include <bsd.man.mk>
.endif