summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1994-08-28 18:33:48 +0000
committerbde <bde@FreeBSD.org>1994-08-28 18:33:48 +0000
commit7a562692a6f4782dd6593102f898cd1366b7ec39 (patch)
treed1fba1fabed829f19e7ee2686d3dd4d63b08b39f /gnu/usr.bin
parent72011dcfa33a38e1a4d50b37135d44dbd2b466ce (diff)
downloadFreeBSD-src-7a562692a6f4782dd6593102f898cd1366b7ec39.zip
FreeBSD-src-7a562692a6f4782dd6593102f898cd1366b7ec39.tar.gz
Use standard clean, cleandir and obj targets.
Don't use $@. Uniformize the man Makefiles for shell scripts. It should't take such large Makefiles to install one script and one man page each.
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/man/apropos/Makefile17
-rw-r--r--gnu/usr.bin/man/whatis/Makefile15
2 files changed, 13 insertions, 19 deletions
diff --git a/gnu/usr.bin/man/apropos/Makefile b/gnu/usr.bin/man/apropos/Makefile
index f353eb7..bc6bdec 100644
--- a/gnu/usr.bin/man/apropos/Makefile
+++ b/gnu/usr.bin/man/apropos/Makefile
@@ -1,4 +1,4 @@
-# $Id$
+# $Id: Makefile,v 1.7 1994/06/05 21:57:03 csgr Exp $
.if exists(${.CURDIR}/obj)
MAN1= ${.CURDIR}/obj/apropos.1
@@ -10,32 +10,27 @@ TARG= ${.CURDIR}/apropos
MANDEPEND= ${MAN1}
+CLEANFILES+= ${TARG} ${MAN1}
+
all: ${TARG} ${MAN1}
depend rcsfreeze tags all:
@echo -n
-cleandir: clean
- cd ${.CURDIR}; rm -rf obj;
-
-clean:
- @rm -f ${TARG} ${MAN1}
-
${TARG}: ${.CURDIR}/apropos.sh
sed -e 's,%libdir%,${libdir},' -e 's,%bindir%,${bindir},' \
-e 's,%pager%,${pager},' \
- ${.CURDIR}/apropos.sh > $@
+ ${.CURDIR}/apropos.sh > ${.TARGET}
${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},' \
- ${.CURDIR}/apropos.man > $@
+ ${.CURDIR}/apropos.man > ${.TARGET}
install: ${TARG} maninstall
install -c -o bin -g bin -m 555 ${TARG} ${DESTDIR}/usr/bin
-
.include "../Makefile.inc"
.if make(maninstall) || make(install)
@@ -45,3 +40,5 @@ install: ${TARG} maninstall
maninstall:
.endif
.endif
+
+.include <bsd.prog.mk>
diff --git a/gnu/usr.bin/man/whatis/Makefile b/gnu/usr.bin/man/whatis/Makefile
index b3cd6a8..4a825c8 100644
--- a/gnu/usr.bin/man/whatis/Makefile
+++ b/gnu/usr.bin/man/whatis/Makefile
@@ -8,32 +8,27 @@ TARG= ${.CURDIR}/whatis
MANDEPEND= ${MAN1}
+CLEANFILES+= ${TARG} ${MAN1}
+
all: ${TARG} ${MAN1}
depend rcsfreeze tags all:
@echo -n
-cleandir: clean
- cd ${.CURDIR}; rm -rf obj;
-
-clean:
- @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}
+ ${.CURDIR}/whatis.sh > ${.TARGET}
${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 > ${MAN1}
+ ${.CURDIR}/whatis.man > ${.TARGET}
install: ${TARG} maninstall
install -c -o bin -g bin -m 555 ${TARG} ${DESTDIR}/usr/bin
-
.include "../Makefile.inc"
.if make(maninstall) || make(install)
.if !defined(NOMAN)
@@ -42,3 +37,5 @@ install: ${TARG} maninstall
maninstall:
.endif
.endif
+
+.include <bsd.prog.mk>
OpenPOWER on IntegriCloud