summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2017-11-27 04:52:21 (GMT)
committerTony Theodore <tonyt@logyst.com>2017-12-22 21:19:00 (GMT)
commit9d39a40a2b8fb37f7c70b48ddf43f094b931113a (patch)
treecb00c89fa75d2d3f6b1c281000e8a49a162c5b1f /Makefile
parent5fe1c5043ba9207a7b3e4f3de5ab734de7c6af41 (diff)
downloadmxe-9d39a40a2b8fb37f7c70b48ddf43f094b931113a.zip
mxe-9d39a40a2b8fb37f7c70b48ddf43f094b931113a.tar.gz
mxe-9d39a40a2b8fb37f7c70b48ddf43f094b931113a.tar.bz2
Makefile and build-pkg: use {pkg}~{target} directly
Required for the case where a cross package is independent of it's native package (e.g. libiconv) and the native pkg may not have been built in the dep chain. Calling: ``` make pkg MXE_TARGETS=... ``` will then cause `make` to build the native pkg as well. (MXE_TARGETS is still required otherwise it will be picked up from settings.mk)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 35f69da..c0fbb55 100644
--- a/Makefile
+++ b/Makefile
@@ -663,8 +663,8 @@ download-$(1): download-$(3)~$(1) download-only-$(1)
download-$(3)~$(1): download-only-$(1) \
$(addprefix download-,$(PKG_ALL_DEPS))
-.PHONY: $(1)
-$(1): $(PREFIX)/$(3)/installed/$(1)
+.PHONY: $(1) $(1)~$(3)
+$(1) $(1)~$(3): $(PREFIX)/$(3)/installed/$(1)
$(PREFIX)/$(3)/installed/$(1): $(PKG_MAKEFILES) \
$($(PKG)_PATCHES) \
$(PKG_TESTFILES) \