summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/Makefile
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2011-09-22 22:21:14 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2011-09-22 22:21:14 +0000
commite3fda8c936e29fe52d114f2e1c27dce857ea7b26 (patch)
tree2f42865ae014ea6c86902dbbf551a49b03a4b890 /gnu/usr.bin/Makefile
parentcbfe53647e23e1ec9eb393d4716a2493ea70e874 (diff)
Always install all manuals on all architectures.
No more exceptions even for binutils. No more share/man in src/distrib/sets/lists/*/md.* ok deraadt@
Diffstat (limited to 'gnu/usr.bin/Makefile')
-rw-r--r--gnu/usr.bin/Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/gnu/usr.bin/Makefile b/gnu/usr.bin/Makefile
index 155cb05d279..0396760635f 100644
--- a/gnu/usr.bin/Makefile
+++ b/gnu/usr.bin/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.48 2011/07/05 00:15:03 drahn Exp $
+# $OpenBSD: Makefile,v 1.49 2011/09/22 22:21:13 schwarze Exp $
# $NetBSD: Makefile,v 1.35 1996/04/03 21:20:52 chuck Exp $
.include <bsd.own.mk>
@@ -30,4 +30,18 @@ SUBDIR+= gas ld
# Do these last; texinfo builds the info 'dir' file, perl must be after binutils
SUBDIR+= perl texinfo
+.if ${COMPILER_VERSION:L} == "gcc4"
+maninstall:
+ ${INSTALL} ${INSTALL_COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} \
+ gcc/protoize.1 ${DESTDIR}${MANDIR}1/protoize.1
+ @rm -f ${DESTDIR}${MANDIR}1/unprotoize.1
+ ln ${DESTDIR}${MANDIR}1/protoize.1 ${DESTDIR}${MANDIR}1/unprotoize.1
+.elif ${ELF_TOOLCHAIN:L} == "yes"
+maninstall:
+.for cmd in addr2line objcopy readelf
+ ${INSTALL} ${INSTALL_COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} \
+ binutils/binutils/doc/${cmd}.1 ${DESTDIR}${MANDIR}1/${cmd}.1
+.endfor
+.endif
+
.include <bsd.subdir.mk>