summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/man
diff options
context:
space:
mode:
authornate <nate@FreeBSD.org>1993-08-04 21:00:46 +0000
committernate <nate@FreeBSD.org>1993-08-04 21:00:46 +0000
commit3e13f7d8871ddccb646637b23950c25ab6242a42 (patch)
tree2c93f65c9b13983f1f35b3f7bbd0ca5da0c002af /gnu/usr.bin/man
parentaf16859a1091cccb1361141e13a96bf139bae324 (diff)
downloadFreeBSD-src-3e13f7d8871ddccb646637b23950c25ab6242a42.zip
FreeBSD-src-3e13f7d8871ddccb646637b23950c25ab6242a42.tar.gz
Cleaned up the Makefile to look nicer and not require a lot of hacks
Diffstat (limited to 'gnu/usr.bin/man')
-rw-r--r--gnu/usr.bin/man/makewhatis/Makefile29
1 files changed, 10 insertions, 19 deletions
diff --git a/gnu/usr.bin/man/makewhatis/Makefile b/gnu/usr.bin/man/makewhatis/Makefile
index dca3e15..f146c9d 100644
--- a/gnu/usr.bin/man/makewhatis/Makefile
+++ b/gnu/usr.bin/man/makewhatis/Makefile
@@ -1,24 +1,15 @@
-.if exists(${.CURDIR}/obj)
-TARG= ${.CURDIR}/obj/makewhatis
-.else
-TARG= ${.CURDIR}/makewhatis
-.endif
+# @(#)Makefile 5.6 (Berkeley) 6/23/90
-all: ${TARG}
+NOMAN= noman
+CLEANFILES= makewhatis
-depend rcsfreeze tags all:
- @echo -n
+beforeinstall: makewhatis
+ install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
+ ${.CURDIR}/makewhatis.sh ${DESTDIR}${BINDIR}/makewhatis
-cleandir: clean
- cd ${.CURDIR}; rm -rf obj;
+.include <bsd.prog.mk>
-clean:
- @rm -f ${TARG}
+makewhatis: makewhatis.sh
+ sed -e 's/%sections%/ "1", "n", "l", "6", "8", "2", "3", "4", "5", "7", "p", "o", NULL/' \
+ ${.CURDIR}/makewhatis.sh > makewhatis
-install:
- install -c -o bin -g bin -m 555 ${TARG} ${DESTDIR}/usr/bin
-
-${TARG}: ${.CURDIR}/makewhatis.sh
- sed -e 's/%sections%/ "1", "n", "l", "6", "8", "2", "3", "4", "5", "7", "p", "o", NULL/' ${.CURDIR}/makewhatis.sh > ${TARG}
-
-.include "../Makefile.inc"
OpenPOWER on IntegriCloud