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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user