From 5567931c8096d79c0174bbb5f52d45091fc100b9 Mon Sep 17 00:00:00 2001 From: Glenn Date: Mon, 18 Dec 2023 17:24:39 +0100 Subject: [PATCH] fix(graphviz): Generate GRAPHVIZ_DEST_DIR if missing --- graphviz.mk | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/graphviz.mk b/graphviz.mk index 8187e0e..6361b81 100644 --- a/graphviz.mk +++ b/graphviz.mk @@ -30,10 +30,13 @@ GRAPHVIZ_APT_PACKAGES := graphviz ## 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 $< > $@ -$(GRAPHVIZ_DEST_DIR)/%.circo.svg: $(GRAPHVIZ_SRC_DIR)/%.circo +$(GRAPHVIZ_DEST_DIR)/%.circo.svg: $(GRAPHVIZ_SRC_DIR)/%.circo | $(GRAPHVIZ_DEST_DIR) circo -Tsvg $< > $@ $(GRAPHVIZ_SVG): | $(GRAPHVIZ_DEST_DIR)