From: Yann E. MORIN Date: Tue, 7 Jan 2014 22:46:04 +0000 (+0100) Subject: Makefile: support running graph-depends from out-of-tree X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=56eb3944d5d6d58b0125b22da7dcaeff5c0d3d1f;p=buildroot.git Makefile: support running graph-depends from out-of-tree Reported-by: Thomas Petazzoni Signed-off-by: "Yann E. MORIN" Cc: Thomas Petazzoni Signed-off-by: Peter Korsgaard --- diff --git a/Makefile b/Makefile index 6faa698dee..7624f593d6 100644 --- a/Makefile +++ b/Makefile @@ -647,7 +647,8 @@ graph-build: $(O)/build/build-time.log graph-depends: @$(INSTALL) -d $(O)/graphs - @./support/scripts/graph-depends \ + @cd "$(CONFIG_DIR)"; \ + $(TOPDIR)/support/scripts/graph-depends \ |dot -T$(BR2_GRAPH_OUT) -o $(O)/graphs/$(@).$(BR2_GRAPH_OUT) else # ifeq ($(BR2_HAVE_DOT_CONFIG),y) diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index b519d6942c..1b99c2a25d 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -470,7 +470,8 @@ $(1)-show-depends: $(1)-graph-depends: @$(INSTALL) -d $(O)/graphs - @./support/scripts/graph-depends $(1) \ + @cd "$(CONFIG_DIR)"; \ + $(TOPDIR)/support/scripts/graph-depends $(1) \ |dot -T$(BR2_GRAPH_OUT) -o $(O)/graphs/$$(@).$(BR2_GRAPH_OUT) $(1)-dirclean: $$($(2)_TARGET_DIRCLEAN)