summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2017-11-25 15:01:32 (GMT)
committerTony Theodore <tonyt@logyst.com>2017-12-22 21:19:00 (GMT)
commit800377564b3ba02d090e107120fdfc28911e135e (patch)
treed6ef4b5169cbdcdbef197d0b6c9073d7d0f44c0f /Makefile
parent8954654349b66e6aa09c10ed65264079030ba4f0 (diff)
downloadmxe-800377564b3ba02d090e107120fdfc28911e135e.zip
mxe-800377564b3ba02d090e107120fdfc28911e135e.tar.gz
mxe-800377564b3ba02d090e107120fdfc28911e135e.tar.bz2
Makefile: add script package type avoid unpacking archive
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9e4f0eb..cf6e382 100644
--- a/Makefile
+++ b/Makefile
@@ -428,6 +428,8 @@ MXE_REQS_PKGS =
VIRTUAL_PKG_TYPES := archive meta
# used in deps rules and build-pkg
BUILD_PKG_TYPES := meta
+# used to avoid unpacking archives when $(PKG)_FILE can't be unset
+SCRIPT_PKG_TYPES := script
# all pkgs have (implied) order-only dependencies on MXE_CONF_PKGS.
MXE_CONF_PKGS := mxe-conf
@@ -753,7 +755,8 @@ build-only-$(1)_$(3):
mkdir -p '$(2)/readonly'
chmod 0555 '$(2)/readonly'
- $$(if $(value $(call LOOKUP_PKG_RULE,$(1),FILE,$(3))),\
+ $$(if $(and $(value $(call LOOKUP_PKG_RULE,$(1),FILE,$(3))),\
+ $(call not,$(filter $(SCRIPT_PKG_TYPES),$($(PKG)_TYPE)))),\
$$(call PREPARE_PKG_SOURCE,$(1),$(2)))
$$(call $(call LOOKUP_PKG_RULE,$(1),BUILD,$(3)),$(2)/$($(1)_SUBDIR))
@echo