fix(graphviz): Generate GRAPHVIZ_DEST_DIR if missing

This commit is contained in:
Glenn Y. Rolland 2023-12-18 17:24:39 +01:00
parent d5627404e1
commit 5567931c80

View file

@ -30,10 +30,13 @@ GRAPHVIZ_APT_PACKAGES := graphviz
## Rules ## Rules
## ##
$(GRAPHVIZ_DEST_DIR)/%.dot.svg: $(GRAPHVIZ_SRC_DIR)/%.dot $(GRAPHVIZ_DEST_DIR):
mkdir -p $(GRAPHVIZ_DEST_DIR)
$(GRAPHVIZ_DEST_DIR)/%.dot.svg: $(GRAPHVIZ_SRC_DIR)/%.dot | $(GRAPHVIZ_DEST_DIR)
dot -Tsvg $< > $@ dot -Tsvg $< > $@
$(GRAPHVIZ_DEST_DIR)/%.circo.svg: $(GRAPHVIZ_SRC_DIR)/%.circo $(GRAPHVIZ_DEST_DIR)/%.circo.svg: $(GRAPHVIZ_SRC_DIR)/%.circo | $(GRAPHVIZ_DEST_DIR)
circo -Tsvg $< > $@ circo -Tsvg $< > $@
$(GRAPHVIZ_SVG): | $(GRAPHVIZ_DEST_DIR) $(GRAPHVIZ_SVG): | $(GRAPHVIZ_DEST_DIR)