diff options
author | Tony Theodore <tonyt@logyst.com> | 2019-02-23 00:23:36 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2019-02-24 02:44:57 (GMT) |
commit | b6313a950da8d8c12b103071ab1aa3854c6a3957 (patch) | |
tree | 59fb05d960df73d2ea891d860abd5543f0e124c9 /Makefile | |
parent | 7ce446c6de3b9dcc81cfcc931ca45d4d0cf5fd83 (diff) | |
download | mxe-b6313a950da8d8c12b103071ab1aa3854c6a3957.zip mxe-b6313a950da8d8c12b103071ab1aa3854c6a3957.tar.gz mxe-b6313a950da8d8c12b103071ab1aa3854c6a3957.tar.bz2 |
Makefile: avoid implied native builds
fixes #2285
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) \ |