aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Fabio Porcedda <fabio.porcedda@gmail.com>2014-06-17 11:33:54 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-06-22 19:24:33 +0200
commitd3c1c647ff9b45d8664036e2003bd5ebaa3f9ccd (patch)
treecf93921c34d6fc0469c7cb9b2a8481b95edbb020 /Makefile
parent9ab109869fe1758e47c75edd16b20af1db05e1fc (diff)
downloadbuildroot-d3c1c647ff9b45d8664036e2003bd5ebaa3f9ccd.tar.gz
buildroot-d3c1c647ff9b45d8664036e2003bd5ebaa3f9ccd.tar.bz2
Makefile: test if "dot" exists in "<pkg>-graph-depends"
To be able to check the "dot" command availability in "<pkg>-graph-depends" move the check to the "graph-depends-requirements" rule. Also don't use a subshell for the exit command to be sure that the error will be returned by the shell. Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Yann E. MORIN <yann.morin.1998@free.fr> Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 14fca2b3d5..4fe370abf3 100644
--- a/Makefile
+++ b/Makefile
@@ -673,9 +673,11 @@ graph-build: $(O)/build/build-time.log
--output=$(O)/graphs/build.pie-$(t).$(BR_GRAPH_OUT) \
$(if $(BR2_GRAPH_ALT),--alternate-colors)$(sep))
-graph-depends:
+graph-depends-requirements:
@dot -? >/dev/null 2>&1 || \
- (echo "ERROR: The 'dot' program from Graphviz is needed for graph-depends" >&2; exit 1)
+ { echo "ERROR: The 'dot' program from Graphviz is needed for graph-depends" >&2; exit 1; }
+
+graph-depends: graph-depends-requirements
@$(INSTALL) -d $(O)/graphs
@cd "$(CONFIG_DIR)"; \
$(TOPDIR)/support/scripts/graph-depends $(BR2_GRAPH_DEPS_OPTS) \