diff --git a/docs/images/.gitignore b/docs/images/.gitignore index 2ae7901..e8827db 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 0da305a..8a4e40c 100644 --- a/docs/images/Makefile +++ b/docs/images/Makefile @@ -1,21 +1,27 @@ 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) py-deps-all.dot: $(PY_DEPGRAPH) $(PY_REQUIREMENTS) cd ../../.. ; $(CURDIR)/$(PY_DEPGRAPH) > $(CURDIR)/$@ py-deps-swh.dot: $(PY_DEPGRAPH) $(PY_REQUIREMENTS) cd ../../.. ; $(CURDIR)/$(PY_DEPGRAPH) --no-external > $(CURDIR)/$@ py-deps-ext.dot: $(PY_DEPGRAPH) $(PY_REQUIREMENTS) cd ../../.. ; $(CURDIR)/$(PY_DEPGRAPH) --no-internal > $(CURDIR)/$@ %.pdf: %.dot dot -T pdf $< > $@ +%.svg: %.dot + dot -T svg $< > $@ + clean: - -rm -f $(DEP_GRAPHS) $(patsubst %.pdf,%.dot,$(DEP_GRAPHS)) + -rm -f $(DEP_GRAPHS)