From 978fed72ed40011ca5f0a0e8462333c3b77a65b4 Mon Sep 17 00:00:00 2001 From: Timothy Gu Date: Tue, 14 Oct 2014 19:51:57 +0000 Subject: Fix target name check This makes it error out when make MXE_TARGETS=i686-w64-mingw32.stati etc. Signed-off-by: Timothy Gu --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index cd87f3e..9fa0909 100644 --- a/Makefile +++ b/Makefile @@ -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) $(BUILD)))), + $(if $(filter $(1),$(MXE_TARGET_LIST) $(BUILD) $(MXE_TRIPLETS)),, $(error Invalid target specified: "$(1)")) $(if $(findstring 1,$(words $(subst ., ,$(filter-out $(BUILD),$(1))))), @echo -- cgit v0.12