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

38 lines
896 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 > $@
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
maninstall: ${MANP}
install -c -o bin -g bin -m 444 ${MANP} ${DESTDIR}/usr/share/man/man1
1993-07-07 23:07:02 +00:00
.include "../Makefile.inc"