Add jobs.mk to allow for target-jobs

jobs.mk automates -j$JOB_MAX and capturing build log based on target.

Compute a default for JOB_MAX in local.sys.mk

Reviewed by:	stevek, imp
Differential Revision:	https://reviews.freebsd.org/D39683
This commit is contained in:
Simon J. Gerraty
2023-04-20 09:40:39 -07:00
parent dd9059b3e9
commit 0df4d8ad7a
4 changed files with 127 additions and 0 deletions
+10
View File
@@ -119,6 +119,16 @@
# For more information, see the build(7) manual page.
#
# Include jobs.mk early if we need it.
# It will turn:
# make buildworld-jobs
# into
# make -j${JOB_MAX} buildworld > ../buildworld.log 2>&1
#
.if make(*-jobs)
.include <jobs.mk>
.endif
.if defined(UNIVERSE_TARGET) || defined(MAKE_JUST_WORLDS) || defined(WITHOUT_KERNELS)
__DO_KERNELS=no
.endif