From 58a5733987046595698f96f1fa0f4cd7f350b482 Mon Sep 17 00:00:00 2001 From: Georg Krause Date: Wed, 1 Nov 2023 20:13:27 +0000 Subject: [PATCH] fix(docs): Allow make to be run on MacOS Part-of: --- docs/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/Makefile b/docs/Makefile index 46ec3053f..c3ec7524b 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -1,5 +1,10 @@ SHELL = bash +UNAME := $(shell uname) +ifeq ($(UNAME), Linux) CPU_CORES = $(shell N=$$(nproc); echo $$(( $$N > 4 ? 4 : $$N ))) +else +CPU_CORES = $(shell N=$$(sysctl -n hw.physicalcpu); echo $$(( $$N > 4 ? 4 : $$N ))) +endif # Install VENV = .venv