summaryrefslogtreecommitdiffstats
path: root/package/pkg-generic.mk
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-03-29 19:33:25 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-04-06 11:26:11 +0200
commit3831c976d0bc0df47429894cc5dfcf5dc69d5366 (patch)
tree3763ad6b9f717da3a85b3ea32eca0ce17a978f26 /package/pkg-generic.mk
parent0dd232e9c7dd89837dba72b475426b7f5ebd7ff6 (diff)
downloadbuildroot-3831c976d0bc0df47429894cc5dfcf5dc69d5366.tar.gz
buildroot-3831c976d0bc0df47429894cc5dfcf5dc69d5366.zip
pkg-generic: implement <pkg>-all-{source, legal-info, external-deps} targets
In order to implement the global 'make source', 'make legal-info' and 'make external-deps' using the package infrastructure logic, this commit introduces a set of per-package targets that allow to recursively run the source/legal-info/external-deps actions on the dependencies of a given package. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Diffstat (limited to 'package/pkg-generic.mk')
-rw-r--r--package/pkg-generic.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
index 1c19947b9f..9070f8b312 100644
--- a/package/pkg-generic.mk
+++ b/package/pkg-generic.mk
@@ -587,6 +587,12 @@ $(1)-graph-depends: graph-depends-requirements
|tee $$(GRAPHS_DIR)/$$(@).dot \
|dot $$(BR2_GRAPH_DOT_OPTS) -T$$(BR_GRAPH_OUT) -o $$(GRAPHS_DIR)/$$(@).$$(BR_GRAPH_OUT)
+$(1)-all-source: $$(foreach p,$$($(2)_FINAL_DEPENDENCIES),$$(p)-all-source) $(1)-source
+
+$(1)-all-external-deps: $$(foreach p,$$($(2)_FINAL_DEPENDENCIES),$$(p)-all-external-deps) $(1)-external-deps
+
+$(1)-all-legal-info: $$(foreach p,$$($(2)_FINAL_DEPENDENCIES),$$(p)-all-legal-info) $(1)-legal-info
+
$(1)-dirclean: $$($(2)_TARGET_DIRCLEAN)
$(1)-clean-for-reinstall:
OpenPOWER on IntegriCloud