From 4e6a309ad12f5e1d56e0425b50d37b0b04b0459e Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 26 Jun 2024 00:20:43 +0200 Subject: fix graph generation --- data/makefile | 8 ++++++++ data/recipes/.gitignore | 2 ++ 2 files changed, 10 insertions(+) (limited to 'data') diff --git a/data/makefile b/data/makefile index b5984dd7..e2effa3e 100644 --- a/data/makefile +++ b/data/makefile @@ -1,4 +1,12 @@ all: $(patsubst %.ts,%.yaml,$(wildcard recipes/*.ts)) +graphs: $(patsubst %.ts,%.svg,$(wildcard recipes/*.ts)) + recipes/%.yaml: recipes/%.ts deno run $< > $@ + +recipes/%.gv.txt: recipes/%.yaml + { cd .. && cargo +nightly run --release --bin graph $(patsubst recipes/%.yaml,%,$<); } > $@ + +recipes/%.svg: recipes/%.gv.txt + dot -Tsvg -Kdot >$@<$< diff --git a/data/recipes/.gitignore b/data/recipes/.gitignore index 1e82fc7d..77c36404 100644 --- a/data/recipes/.gitignore +++ b/data/recipes/.gitignore @@ -1 +1,3 @@ *.yaml +*.gv.txt +*.svg -- cgit v1.2.3-70-g09d2