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/amd64/Makefile | |
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/amd64/Makefile')
-rw-r--r-- | sys/arch/amd64/Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/arch/amd64/Makefile b/sys/arch/amd64/Makefile index e07dd88fa92..e95c8d56242 100644 --- a/sys/arch/amd64/Makefile +++ b/sys/arch/amd64/Makefile @@ -1,4 +1,6 @@ -# $OpenBSD: Makefile,v 1.11 2016/10/14 18:42:58 deraadt Exp $ +# $OpenBSD: Makefile,v 1.12 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 |