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

36 lines
852 B
Makefile
Raw Normal View History

.if exists(${.CURDIR}/obj)
MANP= ${.CURDIR}/obj/apropos.1
TARG= ${.CURDIR}/obj/apropos
.else
MANP= ${.CURDIR}/apropos.1
TARG= ${.CURDIR}/apropos
.endif
1993-07-07 23:07:02 +00:00
all: ${TARG} ${MANP}
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} ${MANP}
1993-07-07 23:07:02 +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},' \
${.CURDIR}/apropos.sh > $@
1993-07-07 23:07:02 +00:00
${MANP}: ${.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 > $@
install: ${TARG} ${MANP}
install -c -o bin -g bin -m 555 ${TARG} /usr/bin
install -c -o bin -g bin -m 444 ${MANP} /usr/share/man/man1
1993-07-07 23:07:02 +00:00
.include "../Makefile.inc"