Makefile: suppress error message on Windows
[rnaseq-cwl-training.git] / Makefile
index dd4720310e809769442ea9b018ed3331adb96a12..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)))
@@ -31,7 +31,7 @@ all : commands
 
 ## commands         : show all commands.
 commands :
-       @grep -h -E '^##' ${MAKEFILES} | sed -e 's/## //g'
+       @grep -h -E '^##' ${MAKEFILES} | sed -e "s/## //g"
 
 ## docker-serve     : use docker to build the site
 docker-serve :