do not blow up if NOMAN is set
authorderaadt <deraadt@openbsd.org>
Thu, 5 Jan 2023 22:17:43 +0000 (22:17 +0000)
committerderaadt <deraadt@openbsd.org>
Thu, 5 Jan 2023 22:17:43 +0000 (22:17 +0000)
gnu/usr.bin/clang/clang/Makefile

index 76535ee..9650ba2 100644 (file)
@@ -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