summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordaniel <daniel@openbsd.org>2019-09-08 17:13:44 +0000
committerdaniel <daniel@openbsd.org>2019-09-08 17:13:44 +0000
commitb2d36f60d25e954f17badcc42162aa26f1d07d46 (patch)
treeba475e49336547999b42962da82f2df80fbc1eed
parentAdd CMS ECC support. (diff)
downloadwireguard-openbsd-b2d36f60d25e954f17badcc42162aa26f1d07d46.tar.xz
wireguard-openbsd-b2d36f60d25e954f17badcc42162aa26f1d07d46.zip
Only install the gcc-local(1) and clang-local(1) man pages if we also have
the corresponding compiler on a given platform. ok deraadt@
-rw-r--r--share/man/man1/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/share/man/man1/Makefile b/share/man/man1/Makefile
index f738f287a48..e8694144358 100644
--- a/share/man/man1/Makefile
+++ b/share/man/man1/Makefile
@@ -1,7 +1,16 @@
-# $OpenBSD: Makefile,v 1.14 2018/07/10 09:05:47 espie Exp $
+# $OpenBSD: Makefile,v 1.15 2019/09/08 17:13:44 daniel Exp $
# $NetBSD: Makefile,v 1.4 1994/12/22 10:48:04 cgd Exp $
-MAN= clang-local.1 help.1 intro.1 gcc-local.1
+.include <bsd.own.mk>
+
+MAN= help.1 intro.1
+
+.if ${BUILD_CLANG:L} == "yes"
+MAN += clang-local.1
+.endif
+.if ${BUILD_GCC3:L} == "yes" || ${BUILD_GCC4:L} == "yes"
+MAN += gcc-local.1
+.endif
# ports tools doc
MAN+= check-lib-depends.1 clean-old-distfiles.1 dpb-replay.1 dpb.1 \