From e7505220d42d46e362d1bbf8b8ee3de81c7177c0 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Thu, 19 Jan 2017 19:50:29 -0800 Subject: [PATCH] Need to define the OS variable at this level too --- docs/docsite/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/docsite/Makefile b/docs/docsite/Makefile index 2f1408f17d..5d03e2b3c6 100644 --- a/docs/docsite/Makefile +++ b/docs/docsite/Makefile @@ -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)