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

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2348>
environments/review-docs-docs-ox2r7i/deployments/18559
Georg Krause 2023-11-01 20:13:27 +00:00 zatwierdzone przez Marge
rodzic 47efcb4b5a
commit 58a5733987
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -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