From a560a2d5127044164af7d2342bfd993be6cef04b Mon Sep 17 00:00:00 2001 From: Adrian Likins Date: Fri, 13 Jan 2017 14:38:02 -0500 Subject: [PATCH] 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. --- docs/docsite/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/docsite/Makefile b/docs/docsite/Makefile index 7978d69719..78b3616565 100644 --- a/docs/docsite/Makefile +++ b/docs/docsite/Makefile @@ -1,7 +1,11 @@ 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) +CPUS := $(shell sysctl hw.ncpu|awk '{print $2}') +else CPUS := $(shell nproc) +endif all: clean docs