diff --git a/docs/images/Makefile b/docs/images/Makefile --- a/docs/images/Makefile +++ b/docs/images/Makefile @@ -5,8 +5,17 @@ DEP_GRAPHS += $(patsubst %,%.pdf,$(DEP_GRAPHS_base)) DEP_GRAPHS += $(patsubst %,%.svg,$(DEP_GRAPHS_base)) PY_DEPGRAPH = ../bin/py-depgraph +REPO_IMAGES_DIRS = $(filter-out ../../../swh-docs/docs/images/,$(wildcard ../../../*/docs/images/)) -all: $(DEP_GRAPHS) +all: $(DEP_GRAPHS) import-ext + +import-ext: + for dir in $(REPO_IMAGES_DIRS); do \ + $(MAKE) -C $$dir; \ + if [ -n "$(wildcard $$dir/*.svg)" ]; then \ + cp $(wildcard $$dir/*.svg) $(CURDIR)/ ; \ + fi; \ + done py-deps-all.dot: $(PY_DEPGRAPH) $(PY_REQUIREMENTS) cd ../../.. ; $(CURDIR)/$(PY_DEPGRAPH) > $(CURDIR)/$@