fix(graphviz): Generate GRAPHVIZ_DEST_DIR if missing
This commit is contained in:
parent
d5627404e1
commit
5567931c80
1 changed files with 5 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue