Check if specified target is valid

See #518.

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
This commit is contained in:
Timothy Gu 2014-10-07 20:36:19 -07:00
parent 557804efbc
commit 8dbc665ea1
1 changed files with 2 additions and 0 deletions

View File

@ -310,6 +310,8 @@ $(1): | $(if $(value $(1)_DEPS), \
$(addprefix $(PREFIX)/$($(1)_DEPS)/installed/,$(PKGS))))) \
$($(1)_DEPS)
@echo '[target] $(1) $(call TARGET_HEADER)'
$(if $(findstring 0,$(words $(findstring $(1),$(MXE_TARGET_LIST)))),
$(error Invalid target specified: "$(1)"))
$(if $(findstring 1,$(words $(subst ., ,$(filter-out $(BUILD),$(1))))),
@echo
@echo '------------------------------------------------------------'