From 4cca66f877997c34d0c28d00f8dcfee049db5c19 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Sun, 8 Jun 2014 16:03:52 +0200 Subject: [PATCH] graph-depends: add option to pass arbitrary dot options Kids nowaday seem to prefer a left-to-right drawing rather than the more conventional and historical top-down drawing. Rather than multiply the number of environment variables, just add a single one where the user can pass arbitrary dot options, such as: make BR2_GRAPH_DOT_OPTS=-Grankdir=LR graph-depends Signed-off-by: "Yann E. MORIN" Cc: Thomas Petazzoni Cc: Maxime Hadjinlian Cc: Samuel Martin Signed-off-by: Thomas Petazzoni --- Makefile | 2 +- package/pkg-generic.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0b4264a5d5..08696f757c 100644 --- a/Makefile +++ b/Makefile @@ -675,7 +675,7 @@ graph-depends: @cd "$(CONFIG_DIR)"; \ $(TOPDIR)/support/scripts/graph-depends $(BR2_GRAPH_DEPS_OPTS) \ |tee $(O)/graphs/$(@).dot \ - |dot -T$(BR_GRAPH_OUT) -o $(O)/graphs/$(@).$(BR_GRAPH_OUT) + |dot $(BR2_GRAPH_DOT_OPTS) -T$(BR_GRAPH_OUT) -o $(O)/graphs/$(@).$(BR_GRAPH_OUT) else # ifeq ($(BR2_HAVE_DOT_CONFIG),y) diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index 5116ed9fea..c6c367c042 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -533,7 +533,7 @@ $(1)-graph-depends: @cd "$(CONFIG_DIR)"; \ $(TOPDIR)/support/scripts/graph-depends -p $(1) $(BR2_GRAPH_DEPS_OPTS) \ |tee $(O)/graphs/$$(@).dot \ - |dot -T$(BR_GRAPH_OUT) -o $(O)/graphs/$$(@).$(BR_GRAPH_OUT) + |dot $(BR2_GRAPH_DOT_OPTS) -T$(BR_GRAPH_OUT) -o $(O)/graphs/$$(@).$(BR_GRAPH_OUT) $(1)-dirclean: $$($(2)_TARGET_DIRCLEAN)