From: deraadt Date: Thu, 5 Jan 2023 22:17:43 +0000 (+0000) Subject: do not blow up if NOMAN is set X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c60061bb22b735c7f13842a2d2fc4881cdd2a674;p=openbsd do not blow up if NOMAN is set --- 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 @@ -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