From adf7e14c8b39d80ca200d7051a97956da04a1e05 Mon Sep 17 00:00:00 2001 From: Theo Buehler Date: Sun, 22 Jan 2017 03:27:32 +0000 Subject: 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 --- sys/arch/landisk/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'sys/arch/landisk') diff --git a/sys/arch/landisk/Makefile b/sys/arch/landisk/Makefile index 8d2a6022abf..0b4007d73f6 100644 --- a/sys/arch/landisk/Makefile +++ b/sys/arch/landisk/Makefile @@ -1,4 +1,6 @@ -# $OpenBSD: Makefile,v 1.9 2016/10/14 18:42:58 deraadt Exp $ +# $OpenBSD: Makefile,v 1.10 2017/01/22 03:27:31 tb Exp $ + +.include # 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 -- cgit v1.2.3