1993-07-21 17:18:04 +00:00
|
|
|
.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
|
|
|
|
1993-07-21 17:18:04 +00:00
|
|
|
all: ${TARG} ${MANP}
|
1993-07-07 23:07:02 +00:00
|
|
|
|
1993-07-21 17:18:04 +00:00
|
|
|
depend rcsfreeze tags all:
|
1993-07-07 23:07:02 +00:00
|
|
|
@echo -n
|
|
|
|
|
|
|
|
cleandir: clean
|
1993-07-21 17:18:04 +00:00
|
|
|
cd ${.CURDIR}; rm -rf obj;
|
1993-07-07 23:07:02 +00:00
|
|
|
|
|
|
|
clean:
|
1993-07-21 17:18:04 +00:00
|
|
|
@rm -f ${TARG} ${MANP}
|
1993-07-07 23:07:02 +00:00
|
|
|
|
1993-07-21 17:18:04 +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},' \
|
1993-07-21 17:18:04 +00:00
|
|
|
${.CURDIR}/apropos.sh > $@
|
1993-07-07 23:07:02 +00:00
|
|
|
|
1993-07-21 17:18:04 +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},' \
|
1993-07-21 17:18:04 +00:00
|
|
|
${.CURDIR}/apropos.man > $@
|
|
|
|
|
1993-07-23 02:58:20 +00:00
|
|
|
install: ${TARG} maninstall
|
1993-07-23 08:23:19 +00:00
|
|
|
install -c -o bin -g bin -m 555 ${TARG} ${DESTDIR}/usr/bin
|
1993-07-23 02:58:20 +00:00
|
|
|
|
|
|
|
maninstall: ${MANP}
|
1993-07-23 08:23:19 +00:00
|
|
|
install -c -o bin -g bin -m 444 ${MANP} ${DESTDIR}/usr/share/man/man1
|
1993-07-07 23:07:02 +00:00
|
|
|
|
1993-07-21 17:18:04 +00:00
|
|
|
.include "../Makefile.inc"
|