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:
parent
47efcb4b5a
commit
58a5733987
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue