summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/Makefile
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2017-01-22 03:27:32 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2017-01-22 03:27:32 +0000
commitadf7e14c8b39d80ca200d7051a97956da04a1e05 (patch)
treea4f1388670cd03525eae2ecb245a7e87b3657e8e /sys/arch/sparc64/Makefile
parent3199a50ba83d4b1067f98d3fdf558a339b8958ef (diff)
Introduce the KEEPKERNELS variable: if this is set either in mk.conf or
the environment, 'make cleandir' does not descend into kernel build directories. Thus, kernel object files survive 'make build' on slower architectures. WARNING: If you set this variable, you run the risk of breaking 'make release': Be sure to run 'make cleandir' from /sys/arch/$(machine)/compile before doing 'make release'. This issue will be addressed shortly. requested by kettenis; ok deraadt
Diffstat (limited to 'sys/arch/sparc64/Makefile')
-rw-r--r--sys/arch/sparc64/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/arch/sparc64/Makefile b/sys/arch/sparc64/Makefile
index 534a6c7af13..977491ef955 100644
--- a/sys/arch/sparc64/Makefile
+++ b/sys/arch/sparc64/Makefile
@@ -1,4 +1,6 @@
-# $OpenBSD: Makefile,v 1.9 2016/10/14 18:42:59 deraadt Exp $
+# $OpenBSD: Makefile,v 1.10 2017/01/22 03:27:31 tb Exp $
+
+.include <bsd.own.mk> # for KEEPKERNELS
S= ${.CURDIR}/../..
KFILE= GENERIC
@@ -11,7 +13,10 @@ TAGS= ${.CURDIR}/tags
NOPROG=
NOMAN=
NOOBJ=
-SUBDIR= stand compile
+SUBDIR= stand
+.if !defined(KEEPKERNELS) || !(make(clean) || make(cleandir))
+SUBDIR+=compile
+.endif
# config the fattest kernel we can find into a temporary dir
# to create a Makefile. Then use make to pull some variables