From 69337406ecd588ac1a2eead793ece833c36e17ea Mon Sep 17 00:00:00 2001 From: plunky Date: Wed, 3 Feb 2010 22:07:50 +0000 Subject: [PATCH] following the documentation in mk.conf(5) and share/mk/bsd.README, and prior art with the MKGCC and MKGCCCMDS build options, only build and install the pcc commands (pcc, cpp & ccom) when MKPCCCMDS != no --- external/bsd/pcc/libexec/Makefile | 8 ++++++-- external/bsd/pcc/usr.bin/Makefile | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/external/bsd/pcc/libexec/Makefile b/external/bsd/pcc/libexec/Makefile index d3677b0a5cd9..10866fea5b87 100644 --- a/external/bsd/pcc/libexec/Makefile +++ b/external/bsd/pcc/libexec/Makefile @@ -1,5 +1,9 @@ -# $NetBSD: Makefile,v 1.2 2010/01/20 11:45:55 plunky Exp $ +# $NetBSD: Makefile,v 1.3 2010/02/03 22:07:50 plunky Exp $ -SUBDIR= ccom cpp +.include + +.if (${MKPCCCMDS} != "no") +SUBDIR+= ccom cpp +.endif .include diff --git a/external/bsd/pcc/usr.bin/Makefile b/external/bsd/pcc/usr.bin/Makefile index 6fe646b7de33..7e2723202973 100644 --- a/external/bsd/pcc/usr.bin/Makefile +++ b/external/bsd/pcc/usr.bin/Makefile @@ -1,5 +1,9 @@ -# $NetBSD: Makefile,v 1.1 2008/08/24 05:47:05 gmcgarry Exp $ +# $NetBSD: Makefile,v 1.2 2010/02/03 22:07:50 plunky Exp $ -SUBDIR= pcc +.include + +.if (${MKPCCCMDS} != "no") +SUBDIR+= pcc +.endif .include