]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
pkg-infra: add <pkg>-extract and <pkg>-patch targets to OVERRIDE support
authorArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Thu, 6 Dec 2012 13:16:00 +0000 (13:16 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 7 Dec 2012 01:13:57 +0000 (17:13 -0800)
The legal-info target (and possibly others as well) depends on
<pkg>-extract to make sure the license file is available.  However,
when <PKG>_OVERRIDE_SRCDIR is active, the <pkg>-extract target
doesn't exist.

To solve this, we add <pkg>-extract which depends on <pkg>-rsync.
While we're at it, we do the same for <pkg>-patch.  That avoids the
same problem in the future if something starts depending on
<pkg>-patch.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/pkg-generic.mk

index fc05dc66bb331523f797e96bbee8787eebf4fc7d..a570ad758fed6223487fa1f999b824508df70855 100644 (file)
@@ -390,6 +390,9 @@ $(1)-configure:             $(1)-depends \
 
 $(1)-depends:          $(1)-rsync $$($(2)_DEPENDENCIES)
 
+$(1)-patch:            $(1)-rsync
+$(1)-extract:          $(1)-rsync
+
 $(1)-rsync:            $$($(2)_TARGET_RSYNC)
 
 $(1)-source:           $$($(2)_TARGET_RSYNC_SOURCE)