mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Need to define the OS variable at this level too
This commit is contained in:
parent
ccb40e364f
commit
e7505220d4
1 changed files with 2 additions and 1 deletions
|
@ -1,7 +1,8 @@
|
|||
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 -c 'Darwin|FreeBSD|OpenBSD|DragonFly'),1)
|
||||
ifeq ($(shell echo $(OS) | egrep -ic 'Darwin|FreeBSD|OpenBSD|DragonFly'),1)
|
||||
CPUS := $(shell sysctl hw.ncpu|awk '{print $2}')
|
||||
else
|
||||
CPUS := $(shell nproc)
|
||||
|
|
Loading…
Reference in a new issue