From: James Haggerty Date: Mon, 24 Oct 2022 22:24:54 +0000 (+1100) Subject: Fix Linux Makefile parallelism X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=07f439c598d585651871794a96c0d124f77a5d56;p=sensor-watch.git Fix Linux Makefile parallelism Makefile != bourne shell, I think. At least on my systems, this was causing a raw -j, which meant that make had no restriction on its parallelism (i.e. tried to build everything at once). --- diff --git a/make.mk b/make.mk index 2540164..2fe89d7 100644 --- a/make.mk +++ b/make.mk @@ -31,7 +31,7 @@ else endif ifeq ($(DETECTED_OS), LINUX) - MAKEFLAGS += -j `nproc` + MAKEFLAGS += -j $(shell nproc) endif ifeq ($(DETECTED_OS), OSX) NPROCS = $(shell sysctl hw.ncpu | grep -o '[0-9]\+')