mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-01 19:54:24 -07:00
Use portable CPUS detect for docsite make default.
Some folks run 'make webdocs' from docs/docsite, so use the portable CPUS detections as the default here as well.
This commit is contained in:
parent
c0263b3020
commit
a560a2d512
1 changed files with 4 additions and 0 deletions
|
@ -1,7 +1,11 @@
|
||||||
SITELIB = $(shell python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
|
SITELIB = $(shell python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
|
||||||
FORMATTER=../../hacking/module_formatter.py
|
FORMATTER=../../hacking/module_formatter.py
|
||||||
DUMPER=../../hacking/dump_playbook_attributes.py
|
DUMPER=../../hacking/dump_playbook_attributes.py
|
||||||
|
ifeq ($(shell echo $(OS) | egrep -c 'Darwin|FreeBSD|OpenBSD|DragonFly'),1)
|
||||||
|
CPUS := $(shell sysctl hw.ncpu|awk '{print $2}')
|
||||||
|
else
|
||||||
CPUS := $(shell nproc)
|
CPUS := $(shell nproc)
|
||||||
|
endif
|
||||||
|
|
||||||
all: clean docs
|
all: clean docs
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue