aboutsummaryrefslogtreecommitdiff
path: root/gnu/man/makewhatis/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/man/makewhatis/Makefile')
-rw-r--r--gnu/man/makewhatis/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/gnu/man/makewhatis/Makefile b/gnu/man/makewhatis/Makefile
new file mode 100644
index 000000000000..f146c9d4da2d
--- /dev/null
+++ b/gnu/man/makewhatis/Makefile
@@ -0,0 +1,15 @@
+# @(#)Makefile 5.6 (Berkeley) 6/23/90
+
+NOMAN= noman
+CLEANFILES= makewhatis
+
+beforeinstall: makewhatis
+ install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
+ ${.CURDIR}/makewhatis.sh ${DESTDIR}${BINDIR}/makewhatis
+
+.include <bsd.prog.mk>
+
+makewhatis: makewhatis.sh
+ sed -e 's/%sections%/ "1", "n", "l", "6", "8", "2", "3", "4", "5", "7", "p", "o", NULL/' \
+ ${.CURDIR}/makewhatis.sh > makewhatis
+