summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/clang
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2023-01-05 22:17:44 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2023-01-05 22:17:44 +0000
commitcdef67885fc5fd685aca231cd05c33e43b08d665 (patch)
tree417837489107ff5a01d996c8d9d5eec85d70c652 /gnu/usr.bin/clang
parent050b801c5d38c4c56240ac041901c0cdd446caa1 (diff)
do not blow up if NOMAN is set
Diffstat (limited to 'gnu/usr.bin/clang')
-rw-r--r--gnu/usr.bin/clang/clang/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/gnu/usr.bin/clang/clang/Makefile b/gnu/usr.bin/clang/clang/Makefile
index 76535ee8842..9650ba29699 100644
--- a/gnu/usr.bin/clang/clang/Makefile
+++ b/gnu/usr.bin/clang/clang/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.17 2021/04/28 12:55:37 patrick Exp $
+# $OpenBSD: Makefile,v 1.18 2023/01/05 22:17:43 deraadt Exp $
.include <bsd.own.mk>
@@ -19,12 +19,15 @@ LINKS+= ${BINDIR}/clang ${BINDIR}/cc \
${BINDIR}/clang ${LIBEXECDIR}/cpp
maninstall:
+.if !defined(NOMAN)
cd ${DESTDIR}${MANDIR}1 && { \
rm -f cc.1 && ln clang.1 cc.1; \
rm -f c++.1 && ln clang.1 c++.1; \
rm -f cpp.1 && ln clang.1 cpp.1; }
.endif
+.endif
+
CPPFLAGS+= -I${.CURDIR}/../../../llvm/clang/include
.PATH: ${.CURDIR}/../../../llvm/clang/tools/driver