aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorGeoff Rehmet <csgr@FreeBSD.org>1994-06-05 20:39:58 +0000
committerGeoff Rehmet <csgr@FreeBSD.org>1994-06-05 20:39:58 +0000
commit67bc1dabe4272cee3d463eec02adc3e07103562e (patch)
tree9037e4308607b0b7c8f25e9dc108473ebcd1ca88 /gnu
parent624ca9967b52fd436f2bdcb5e7fb763dd97948aa (diff)
Notes
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/man/apropos/Makefile20
-rw-r--r--gnu/usr.bin/man/whatis/Makefile19
2 files changed, 24 insertions, 15 deletions
diff --git a/gnu/usr.bin/man/apropos/Makefile b/gnu/usr.bin/man/apropos/Makefile
index 6208d5e6ba5eb..729c831c398d3 100644
--- a/gnu/usr.bin/man/apropos/Makefile
+++ b/gnu/usr.bin/man/apropos/Makefile
@@ -1,12 +1,16 @@
+# $Id$
+
.if exists(${.CURDIR}/obj)
-MANP= ${.CURDIR}/obj/apropos.1
+MAN1= ${.CURDIR}/obj/apropos.1
TARG= ${.CURDIR}/obj/apropos
.else
-MANP= ${.CURDIR}/apropos.1
+MAN1= ${.CURDIR}/apropos.1
TARG= ${.CURDIR}/apropos
.endif
-all: ${TARG} ${MANP}
+MANDEPEND= ${MAN1}
+
+all: ${TARG} ${MAN1}
depend rcsfreeze tags all:
@echo -n
@@ -15,14 +19,14 @@ cleandir: clean
cd ${.CURDIR}; rm -rf obj;
clean:
- @rm -f ${TARG} ${MANP}
+ @rm -f ${TARG} ${MAN1}
${TARG}: ${.CURDIR}/apropos.sh
sed -e 's,%libdir%,${libdir},' -e 's,%bindir%,${bindir},' \
-e 's,%pager%,${pager},' \
${.CURDIR}/apropos.sh > $@
-${MANP}: ${.CURDIR}/apropos.man
+${MAN1}: ${.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},' \
@@ -31,7 +35,9 @@ ${MANP}: ${.CURDIR}/apropos.man
install: ${TARG} maninstall
install -c -o bin -g bin -m 555 ${TARG} ${DESTDIR}/usr/bin
-maninstall: ${MANP}
- install -c -o bin -g bin -m 444 ${MANP} ${DESTDIR}/usr/share/man/man1
.include "../Makefile.inc"
+
+.if make(maninstall) || make(install)
+.include <bsd.man.mk>
+.endif
diff --git a/gnu/usr.bin/man/whatis/Makefile b/gnu/usr.bin/man/whatis/Makefile
index 94347e11eb311..495598f411f61 100644
--- a/gnu/usr.bin/man/whatis/Makefile
+++ b/gnu/usr.bin/man/whatis/Makefile
@@ -1,12 +1,14 @@
.if exists(${.CURDIR}/obj)
-MANP= ${.CURDIR}/obj/whatis.1
+MAN1= ${.CURDIR}/obj/whatis.1
TARG= ${.CURDIR}/obj/whatis
.else
-MANP= ${.CURDIR}/whatis.1
+MAN1= ${.CURDIR}/whatis.1
TARG= ${.CURDIR}/whatis
.endif
-all: ${TARG} ${MANP}
+MANDEPEND= ${MAN1}
+
+all: ${TARG} ${MAN1}
depend rcsfreeze tags all:
@echo -n
@@ -15,23 +17,24 @@ cleandir: clean
cd ${.CURDIR}; rm -rf obj;
clean:
- @rm -f ${TARG} ${MANP}
+ @rm -f ${TARG} ${MAN1}
${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
+${MAN1}: ${.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}
+ ${.CURDIR}/whatis.man > ${MAN1}
install: ${TARG} maninstall
install -c -o bin -g bin -m 555 ${TARG} ${DESTDIR}/usr/bin
-maninstall: ${MANP}
- install -c -o bin -g bin -m 444 ${MANP} ${DESTDIR}/usr/share/man/man1
.include "../Makefile.inc"
+.if make(maninstall) || make(install)
+.include <bsd.man.mk>
+.endif