From: Thomas Petazzoni Date: Sun, 26 Apr 2015 09:51:12 +0000 (+0200) Subject: Makefile: implement the 'source' target using the package infrastructure X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=17dcad065841b6248043e310e96cf5200fa782ad;p=buildroot.git Makefile: implement the 'source' target using the package infrastructure Now that all the bits are in place, switch the global 'source' target to use the package infrastructure logic. Signed-off-by: Thomas Petazzoni Acked-by: Arnout Vandecappelle (Essensium/Mind) Tested-by: Arnout Vandecappelle (Essensium/Mind) [with 'make source' (actually together with the next patch).] Acked-by: "Yann E. MORIN" Tested-by: "Yann E. MORIN" [tested with a randpackageconfig] --- diff --git a/Makefile b/Makefile index f5ff5746b7..e8a694b694 100644 --- a/Makefile +++ b/Makefile @@ -612,7 +612,7 @@ target-post-image: $(TARGETS_ROOTFS) target-finalize $(call MESSAGE,"Executing post-image script $(s)"); \ $(EXTRA_ENV) $(s) $(BINARIES_DIR) $(call qstrip,$(BR2_ROOTFS_POST_SCRIPT_ARGS))$(sep)) -source: $(PACKAGES_SOURCE) $(HOST_SOURCE) +source: $(foreach p,$(PACKAGES),$(p)-all-source) _external-deps: $(foreach p,$(PACKAGES),$(p)-all-external-deps) external-deps: