summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2017-10-04 23:54:33 +0000
committerchristos <christos@NetBSD.org>2017-10-04 23:54:33 +0000
commit1c0d52a9d4b3e24e56ba5460f3d8f08f6fb07a34 (patch)
tree6ff1822503eb08139b3a250863cdd2ef9060a594 /Makefile
parentda77b85037a39ae1fe15b800c5bd961f70ab0d8b (diff)
Add NOBINARIES, useful to build tools are libraries which is what's needed
for mknative.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index efb4ce43330..cd9a177082a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.318 2017/04/11 14:04:15 christos Exp $
+# $NetBSD: Makefile,v 1.319 2017/10/04 23:54:33 christos Exp $
#
# This is the top-level makefile for building NetBSD. For an outline of
@@ -30,6 +30,7 @@
# NOCLEANDIR, if defined, will avoid a `make cleandir' at the start
# of the `make build'.
# NOINCLUDES will avoid the `make includes' usually done by `make build'.
+# NOBINARIES will not build binaries, only includes and libraries
#
# See mk.conf(5) for more details.
#
@@ -234,6 +235,7 @@ BUILDTARGETS+= includes
.endif
BUILDTARGETS+= do-lib
BUILDTARGETS+= do-compat-lib
+.if !defined(NOBINARIES)
.if ${MKX11} != "no"
BUILDTARGETS+= do-x11
.endif
@@ -242,6 +244,7 @@ BUILDTARGETS+= do-build
BUILDTARGETS+= do-extsrc
.endif
BUILDTARGETS+= do-obsolete
+.endif
#
# Enforce proper ordering of some rules.