From ecb16113fc647b59cb3ee4d66bfc717fdb755444 Mon Sep 17 00:00:00 2001 From: Maxim Belkin Date: Fri, 6 Dec 2019 15:11:48 -0600 Subject: [PATCH] Makefile: suppress another error message on Windows These '2>/dev/null' are important on Windows because without them a mere `make` stalls. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4daaae6..ba5080a 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ DST=_site # (https://stackoverflow.com/a/4933395) ifneq (, $(shell which python3 2>/dev/null)) PYTHON := python3 -else ifneq (, $(shell which python)) +else ifneq (, $(shell which python 2>/dev/null)) PYTHON_VERSION_FULL := $(wordlist 2,4,$(subst ., ,$(shell python --version 2>&1))) PYTHON_VERSION_MAJOR := $(word 1,${PYTHON_VERSION_FULL}) ifneq (3, ${PYTHON_VERSION_MAJOR}) -- 2.30.2