mxe.github: add more descriptive error for unknown api

This commit is contained in:
Tony Theodore 2018-03-17 22:30:19 +11:00
parent 0d23d29097
commit caf37728bc
1 changed files with 2 additions and 1 deletions

View File

@ -100,7 +100,8 @@ define MXE_SETUP_GITHUB
$(if $(and $(GH_BRANCH),$(GH_TAG_VARS)),\
$(error $(newline) $(PKG) specifies both branch and tag variables $(newline)))
$(if $(filter-out $(GH_APIS),$(GH_API))$(filter x,x$(GH_API)),\
$(error $(newline) $(PKG) has unknown API $($(PKG)_GH_CONF) $(newline)))
$(error $(newline) $(PKG) has unknown API in GH_CONF := $($(PKG)_GH_CONF) $(newline)\
must be branches|tags|releases))
$(if $(GH_BRANCH),$(value MXE_SETUP_GITHUB_BRANCH),$(value MXE_SETUP_GITHUB_$(call uc,$(GH_API))))
endef