diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2017-01-22 03:27:32 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2017-01-22 03:27:32 +0000 |
commit | adf7e14c8b39d80ca200d7051a97956da04a1e05 (patch) | |
tree | a4f1388670cd03525eae2ecb245a7e87b3657e8e /sys/arch/landisk | |
parent | 3199a50ba83d4b1067f98d3fdf558a339b8958ef (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/landisk')
-rw-r--r-- | sys/arch/landisk/Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
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 <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 |