mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 05:40:23 -07:00
set cpus only if not set already
This commit is contained in:
parent
c95bd7d9b0
commit
0803c638bb
2 changed files with 5 additions and 5 deletions
|
@ -1,11 +1,11 @@
|
|||
OS = $(shell uname -s)
|
||||
OS ?= $(shell uname -s)
|
||||
SITELIB = $(shell python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"):
|
||||
FORMATTER=../../hacking/module_formatter.py
|
||||
DUMPER=../../hacking/dump_playbook_attributes.py
|
||||
ifeq ($(shell echo $(OS) | egrep -ic 'Darwin|FreeBSD|OpenBSD|DragonFly'),1)
|
||||
CPUS := $(shell sysctl hw.ncpu|awk '{print $$2}')
|
||||
CPUS ?= $(shell sysctl hw.ncpu|awk '{print $$2}')
|
||||
else
|
||||
CPUS := $(shell nproc)
|
||||
CPUS ?= $(shell nproc)
|
||||
endif
|
||||
|
||||
all: docs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue