From 63ba4ff871ae00fa869eb3d290362399e8963105 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Mon, 21 Sep 2020 16:30:54 -0400 Subject: Print nice error message when python is not installed If user runs `make help` on a system without python, we should print a decent message. Signed-off-by: Daniel J Walsh --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 253207f49..8a75c11fb 100644 --- a/Makefile +++ b/Makefile @@ -135,8 +135,13 @@ export PRINT_HELP_PYSCRIPT err_if_empty = $(if $(strip $($(1))),$(strip $($(1))),$(error Required variable $(1) value is undefined, whitespace, or empty)) .PHONY: help +ifneq (, ${PYTHON}) help: @$(PYTHON) -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST) +else +help: + $(error python required for 'make help', executable not found) +endif .gopathok: ifeq ("$(wildcard $(GOPKGDIR))","") -- cgit v1.2.3-54-g00ecf