Patchwork [4/4] package: fix generic patch target for top-level parallel make

mail settings
Submitter Fabio Porcedda
Date July 9, 2013, 8:47 a.m.
Message ID <>
Download mbox | patch
Permalink /patch/257668/
State RFC
Headers show


Fabio Porcedda - July 9, 2013, 8:47 a.m.
To be able to use top-level parallel make we must don't depend in a rule
on the order of evaluation of the prerequisites, so instead of reling on
the left to right ordering of evaluation of the prerequisites add
an explicit rule to describe the dependencies.

Add a rule to specify that the $(2)_TARGET_PATCH target depends
on $(2)_TARGET_EXTRACT target.

Signed-off-by: Fabio Porcedda <>
 package/ | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


diff --git a/package/ b/package/
index fb317d5..6fe3a46 100644
--- a/package/
+++ b/package/
@@ -394,7 +394,8 @@  ifeq ($$($(2)_OVERRIDE_SRCDIR),)
 $(1)-configure:		$(1)-patch $(1)-depends \
-$(1)-patch:		$(1)-extract $$($(2)_TARGET_PATCH)
+$$($(2)_TARGET_PATCH):		$$($(2)_TARGET_EXTRACT)
+$(1)-patch:			$$($(2)_TARGET_PATCH)
 $(1)-extract:			$$($(2)_TARGET_EXTRACT)