From 0f0d7772f11aabeda058d9c69998ac661def30b8 Mon Sep 17 00:00:00 2001 From: Daniel Dickman Date: Sun, 8 Sep 2019 17:13:45 +0000 Subject: 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@ --- share/man/man1/Makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'share/man') 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 + +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 \ -- cgit v1.2.3