mirror of
https://github.com/containers/podman.git
synced 2025-06-23 02:18:13 +08:00
Merge pull request #7714 from rhatdan/make
Print nice error message when python is not installed
This commit is contained in:
5
Makefile
5
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))
|
err_if_empty = $(if $(strip $($(1))),$(strip $($(1))),$(error Required variable $(1) value is undefined, whitespace, or empty))
|
||||||
|
|
||||||
.PHONY: help
|
.PHONY: help
|
||||||
|
ifneq (, ${PYTHON})
|
||||||
help:
|
help:
|
||||||
@$(PYTHON) -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST)
|
@$(PYTHON) -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST)
|
||||||
|
else
|
||||||
|
help:
|
||||||
|
$(error python required for 'make help', executable not found)
|
||||||
|
endif
|
||||||
|
|
||||||
.gopathok:
|
.gopathok:
|
||||||
ifeq ("$(wildcard $(GOPKGDIR))","")
|
ifeq ("$(wildcard $(GOPKGDIR))","")
|
||||||
|
Reference in New Issue
Block a user