Makefile: suppress error message on Windows
authorMaxim Belkin <maxim.belkin@gmail.com>
Fri, 6 Dec 2019 19:43:11 +0000 (13:43 -0600)
committerMaxim Belkin <maxim.belkin@gmail.com>
Fri, 6 Dec 2019 19:43:11 +0000 (13:43 -0600)
Makefile

index a4268d71cfe75fcde726b8a5418f58d0d4ba73d9..4daaae66a4ae8aff0c488381cc5cf055dd62d5d2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@ DST=_site
 
 # Check Python 3 is installed and determine if it's called via python3 or python
 # (https://stackoverflow.com/a/4933395)
-ifneq (, $(shell which python3))
+ifneq (, $(shell which python3 2>/dev/null))
   PYTHON := python3
 else ifneq (, $(shell which python))
   PYTHON_VERSION_FULL := $(wordlist 2,4,$(subst ., ,$(shell python --version 2>&1)))