From ccecf196a70f65cf8d65ebd672244a88ce2960ec Mon Sep 17 00:00:00 2001 From: iWas-Coder Date: Sat, 15 Jun 2024 19:12:07 +0200 Subject: [PATCH] fix: `make -j X` option not working properly in BSD systems --- BSDmakefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/BSDmakefile b/BSDmakefile index 29007c0..45d616c 100644 --- a/BSDmakefile +++ b/BSDmakefile @@ -19,9 +19,13 @@ # +.if "${.MAKE.JOBS}" != "" + JOBS = -j${.MAKE.JOBS} +.endif + .PHONY: all .DEFAULT: @which gmake >/dev/null 2>&1 || (echo "ERROR: *** GNU make is required for Sparky to build. Stop." && exit 1) - @gmake -s ${.FLAGS} ${.TARGETS} + @gmake -s ${.FLAGS} ${.TARGETS} ${JOBS} all: .DEFAULT