summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Porcedda <fabio.porcedda@gmail.com>2014-04-01 11:12:50 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-04-04 23:45:38 +0200
commit207d2acf6b2ec6845514184c69dd7a9395f8d35f (patch)
treef313ed70b0c31b473e512b905f3500c414cc6d85
parenta6b5b8c676542c36884ec1d06afa6a6055b7269f (diff)
downloadbuildroot-207d2acf6b2ec6845514184c69dd7a9395f8d35f.tar.gz
buildroot-207d2acf6b2ec6845514184c69dd7a9395f8d35f.zip
infra: add to luarocks support for top-level parallel make
The host-luarock dependency is not always satisfied for the extract phase because the %-extract target is not anymore in the dependency chain. To be sure that the dependency is satisfied add the dependency to the stamp file $(%_TARGET_EXTRACT) instead of the %-extract target. Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com> Cc: Francois Perrad <fperrad@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/pkg-luarocks.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/package/pkg-luarocks.mk b/package/pkg-luarocks.mk
index bdda022f07..701038158d 100644
--- a/package/pkg-luarocks.mk
+++ b/package/pkg-luarocks.mk
@@ -43,10 +43,6 @@ $(2)_SITE ?= $(call qstrip,$(BR2_LUAROCKS_MIRROR))
# a target package, and can just add the required dependencies
$(2)_DEPENDENCIES += host-luarocks luainterpreter
-# $(2)_DEPENDENCIES are handled for configure step (too late)
-# but host-luarocks is required to do the extract
-$(1)-extract: host-luarocks
-
#
# Extract step
#
@@ -71,6 +67,10 @@ endif
# make targets
$(call inner-generic-package,$(1),$(2),$(3),$(4))
+# $(2)_DEPENDENCIES are handled for configure step (too late)
+# but host-luarocks is required to do the extract
+$$($(2)_TARGET_EXTRACT): | host-luarocks
+
endef
################################################################################
OpenPOWER on IntegriCloud