local.sys.mk (49b6bc83cc4e735da75abe104d4deb0ed52c4958) | local.sys.mk (0df4d8ad7a1b675ead8dec70f291bfd4f3fd81fa) |
---|---|
1# $FreeBSD$ 2 3.if !target(_${_this}_) 4_${_this}_: .NOTMAIN 5 6.if ${MK_DIRDEPS_BUILD} == "yes" || ${MK_META_MODE} == "yes" 7 8# Not in the below list as it may make sense for non-meta mode --- 45 unchanged lines hidden (view full) --- 54 55.if !empty(LIBDIR) 56_PREMK_LIBDIR:= ${LIBDIR} 57.endif 58 59.include "src.sys.mk" 60.-include <site.sys.mk> 61 | 1# $FreeBSD$ 2 3.if !target(_${_this}_) 4_${_this}_: .NOTMAIN 5 6.if ${MK_DIRDEPS_BUILD} == "yes" || ${MK_META_MODE} == "yes" 7 8# Not in the below list as it may make sense for non-meta mode --- 45 unchanged lines hidden (view full) --- 54 55.if !empty(LIBDIR) 56_PREMK_LIBDIR:= ${LIBDIR} 57.endif 58 59.include "src.sys.mk" 60.-include <site.sys.mk> 61 |
62.if make(*-jobs) && empty(JOB_MAX) 63# provide a reasonable? default for JOB_MAX based on ncpu 64JOB_MAX_FACTOR?= 1.33 65NPROC?= ${(type nproc) 2> /dev/null:L:sh:M/*:[1]} 66NPROC:= ${NPROC} 67.if !empty(NPROC) 68ncpu!= ${NPROC} 69.elif ${.MAKE.OS:NDarwin:NFreeBSD} == "" 70ncpu!= sysctl -n hw.ncpu 71.endif 72.if ${ncpu:U0} > 1 73.if ${JOB_MAX_FACTOR} == 1 74JOB_MAX:= ${ncpu} 75.else 76jm!= echo ${ncpu} \* ${JOB_MAX_FACTOR} | bc 77JOB_MAX:= ${jm:R} 78.endif 79.endif 80.endif 81 |
|
62.if ${.MAKE.MODE:Mmeta*} != "" 63# we can afford to use cookies to prevent some targets 64# re-running needlessly but only when using filemon. 65# Targets that should support the meta mode cookie handling should just be 66# added to META_TARGETS. If bsd.sys.mk cannot be included then ${META_DEPS} 67# should be added as a target dependency as well. Otherwise the target 68# is added to in bsd.sys.mk since it comes last. 69.if ${.MAKE.MODE:Mnofilemon} == "" --- 27 unchanged lines hidden --- | 82.if ${.MAKE.MODE:Mmeta*} != "" 83# we can afford to use cookies to prevent some targets 84# re-running needlessly but only when using filemon. 85# Targets that should support the meta mode cookie handling should just be 86# added to META_TARGETS. If bsd.sys.mk cannot be included then ${META_DEPS} 87# should be added as a target dependency as well. Otherwise the target 88# is added to in bsd.sys.mk since it comes last. 89.if ${.MAKE.MODE:Mnofilemon} == "" --- 27 unchanged lines hidden --- |