From: Maxim Belkin Date: Fri, 6 Dec 2019 21:11:48 +0000 (-0600) Subject: Makefile: suppress another error message on Windows X-Git-Url: https://git.arvados.org/rnaseq-cwl-training.git/commitdiff_plain/ecb16113fc647b59cb3ee4d66bfc717fdb755444 Makefile: suppress another error message on Windows These '2>/dev/null' are important on Windows because without them a mere `make` stalls. --- 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})