36 lines
852 B
Makefile
36 lines
852 B
Makefile
.if exists(${.CURDIR}/obj)
|
|
MANP= ${.CURDIR}/obj/apropos.1
|
|
TARG= ${.CURDIR}/obj/apropos
|
|
.else
|
|
MANP= ${.CURDIR}/apropos.1
|
|
TARG= ${.CURDIR}/apropos
|
|
.endif
|
|
|
|
all: ${TARG} ${MANP}
|
|
|
|
depend rcsfreeze tags all:
|
|
@echo -n
|
|
|
|
cleandir: clean
|
|
cd ${.CURDIR}; rm -rf obj;
|
|
|
|
clean:
|
|
@rm -f ${TARG} ${MANP}
|
|
|
|
${TARG}: ${.CURDIR}/apropos.sh
|
|
sed -e 's,%libdir%,${libdir},' -e 's,%bindir%,${bindir},' \
|
|
-e 's,%pager%,${pager},' \
|
|
${.CURDIR}/apropos.sh > $@
|
|
|
|
${MANP}: ${.CURDIR}/apropos.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}/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
|
|
|
|
.include "../Makefile.inc"
|