summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2019-02-23 00:23:36 (GMT)
committerTony Theodore <tonyt@logyst.com>2019-02-24 02:44:57 (GMT)
commitb6313a950da8d8c12b103071ab1aa3854c6a3957 (patch)
tree59fb05d960df73d2ea891d860abd5543f0e124c9 /Makefile
parent7ce446c6de3b9dcc81cfcc931ca45d4d0cf5fd83 (diff)
downloadmxe-b6313a950da8d8c12b103071ab1aa3854c6a3957.zip
mxe-b6313a950da8d8c12b103071ab1aa3854c6a3957.tar.gz
mxe-b6313a950da8d8c12b103071ab1aa3854c6a3957.tar.bz2
Makefile: avoid implied native builds
fixes #2285
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5b874c3..b1b6e0b 100644
--- a/Makefile
+++ b/Makefile
@@ -681,7 +681,10 @@ download-$(3)~$(1): download-only-$(1) \
$(addprefix download-,$(PKG_ALL_DEPS))
.PHONY: $(1) $(1)~$(3)
-$(1) $(1)~$(3): $(PREFIX)/$(3)/installed/$(1)
+# requested pkgs should not build their native version unless
+# explicitly set in DEPS or they only have a single target
+$(if $(filter-out $(BUILD),$(3))$(call not,$(word 2,$($(1)_TARGETS))),$(1)) \
+ $(1)~$(3): $(PREFIX)/$(3)/installed/$(1)
$(PREFIX)/$(3)/installed/$(1): $(PKG_MAKEFILES) \
$($(PKG)_PATCHES) \
$(PKG_TESTFILES) \