Merge pull request #7714 from rhatdan/make

Print nice error message when python is not installed
This commit is contained in:
OpenShift Merge Robot 2020-09-22 16:04:24 +00:00 committed by GitHub
commit 34b87961af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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))","")