Makefile: add $(BUILD) to allowed targets

This commit is contained in:
Tony Theodore 2014-10-09 04:29:43 +11:00
parent 357e71356b
commit 4835619559
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ $(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)))),
$(if $(findstring 0,$(words $(findstring $(1),$(MXE_TARGET_LIST) $(BUILD)))),
$(error Invalid target specified: "$(1)"))
$(if $(findstring 1,$(words $(subst ., ,$(filter-out $(BUILD),$(1))))),
@echo