.if exists
(${.CURDIR
}/obj
)
MANP
= ${.CURDIR
}/obj
/whatis
.1
TARG
= ${.CURDIR
}/obj
/whatis
MANP
= ${.CURDIR
}/whatis
.1
depend rcsfreeze
tags all:
cd
${.CURDIR
}; rm -rf obj
;
${TARG}: ${.CURDIR
}/whatis.sh
sed
-e
's,%libdir%,${libdir},' -e
's,%bindir%,${bindir},' \
-e
's,%pager%,${pager},' \
${.CURDIR
}/whatis.sh
> ${TARG}
${MANP}: ${.CURDIR
}/whatis.man
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
> ${MANP}
install: ${TARG} maninstall
install -c
-o bin
-g bin
-m
555 ${TARG} ${DESTDIR}/usr
/bin
install -c
-o bin
-g bin
-m
444 ${MANP} ${DESTDIR}/usr
/share
/man
/man1
.
include "../Makefile.inc"