From c68dbaccd3be60b79d1d316025f99b833a93bd4a Mon Sep 17 00:00:00 2001
From: Stefano Zacchiroli <zack@upsilon.cc>
Date: Tue, 19 Sep 2017 16:25:11 +0200
Subject: [PATCH] also generate module dependency graphs in SVG format

---
 docs/images/.gitignore |  3 +--
 docs/images/Makefile   | 10 ++++++++--
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/docs/images/.gitignore b/docs/images/.gitignore
index 2ae7901b..e8827db1 100644
--- a/docs/images/.gitignore
+++ b/docs/images/.gitignore
@@ -1,2 +1 @@
-py-deps-*.dot
-py-deps-*.pdf
+py-deps-*
diff --git a/docs/images/Makefile b/docs/images/Makefile
index 0da305a1..8a4e40c7 100644
--- a/docs/images/Makefile
+++ b/docs/images/Makefile
@@ -1,6 +1,9 @@
 
 PY_REQUIREMENTS = $(wildcard ../../../*/requirements*.txt)
-DEP_GRAPHS = py-deps-all.pdf py-deps-swh.pdf py-deps-ext.pdf
+DEP_GRAPHS_base = py-deps-all py-deps-swh py-deps-ext
+DEP_GRAPHS += $(patsubst %,%.dot,$(DEP_GRAPHS_base))
+DEP_GRAPHS += $(patsubst %,%.pdf,$(DEP_GRAPHS_base))
+DEP_GRAPHS += $(patsubst %,%.svg,$(DEP_GRAPHS_base))
 PY_DEPGRAPH = ../bin/py-depgraph
 
 all: $(DEP_GRAPHS)
@@ -17,5 +20,8 @@ py-deps-ext.dot: $(PY_DEPGRAPH) $(PY_REQUIREMENTS)
 %.pdf: %.dot
 	dot -T pdf $< > $@
 
+%.svg: %.dot
+	dot -T svg $< > $@
+
 clean:
-	-rm -f $(DEP_GRAPHS) $(patsubst %.pdf,%.dot,$(DEP_GRAPHS))
+	-rm -f $(DEP_GRAPHS)
-- 
GitLab