aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2015-04-10 13:45:15 +0800
committerantoine <antoine@FreeBSD.org>2015-04-10 13:45:15 +0800
commit19ce62b0063882bf7390c2edbcbea3114681fce0 (patch)
treeb867a314a066544323913472a439defe757d1b09 /Mk
parent9c714c3e8913b1f63fb042e9a3541607de36fdca (diff)
downloadfreebsd-ports-gnome-19ce62b0063882bf7390c2edbcbea3114681fce0.tar.gz
freebsd-ports-gnome-19ce62b0063882bf7390c2edbcbea3114681fce0.tar.zst
freebsd-ports-gnome-19ce62b0063882bf7390c2edbcbea3114681fce0.zip
- Make it possible to override _MAKE_JOBS when MAKE_JOBS_NUMBER=1
- Override it for USES=ninja With this commit and r383571, ports using ninja and waf now respect MAKE_JOBS_NUMBER when it's equal to 1 PR: 197910 With hat: portmgr
Diffstat (limited to 'Mk')
-rw-r--r--Mk/Uses/ninja.mk2
-rw-r--r--Mk/bsd.port.mk2
2 files changed, 3 insertions, 1 deletions
diff --git a/Mk/Uses/ninja.mk b/Mk/Uses/ninja.mk
index 3e7c6186e033..42859684f78f 100644
--- a/Mk/Uses/ninja.mk
+++ b/Mk/Uses/ninja.mk
@@ -27,6 +27,8 @@ CMAKE_ARGS+= -GNinja
MAKEFILE=
MAKE_CMD= ninja
MAKE_FLAGS=
+# Set a minimal job of 1
+_MAKE_JOBS= -j${MAKE_JOBS_NUMBER}
_DESTDIR_VIA_ENV= yes
.endif
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index b1e171b86e47..3c6df233edc3 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -2039,7 +2039,7 @@ ${lang}FLAGS+= ${${lang}FLAGS_${ARCH}}
# Multiple make jobs support
.if defined(DISABLE_MAKE_JOBS) || defined(MAKE_JOBS_UNSAFE)
-_MAKE_JOBS= #
+_MAKE_JOBS?= #
MAKE_JOBS_NUMBER= 1
.else
.if defined(MAKE_JOBS_NUMBER)