fix(docs): Allow make to be run on MacOS

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2348>
This commit is contained in:
Georg Krause 2023-11-01 20:13:27 +00:00 committed by Marge
parent 47efcb4b5a
commit 58a5733987
1 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,10 @@
SHELL = bash SHELL = bash
UNAME := $(shell uname)
ifeq ($(UNAME), Linux)
CPU_CORES = $(shell N=$$(nproc); echo $$(( $$N > 4 ? 4 : $$N ))) 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 # Install
VENV = .venv VENV = .venv