diff options
author | metamuffin <metamuffin@disroot.org> | 2024-06-26 00:20:43 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-06-26 00:20:43 +0200 |
commit | 4e6a309ad12f5e1d56e0425b50d37b0b04b0459e (patch) | |
tree | 5eae032af2b5bd0c4a16e35dc9e76dc43adb6c3f /data | |
parent | d6d561c7e4f9d65718111a1dd519624b44aeec7f (diff) | |
download | hurrycurry-4e6a309ad12f5e1d56e0425b50d37b0b04b0459e.tar hurrycurry-4e6a309ad12f5e1d56e0425b50d37b0b04b0459e.tar.bz2 hurrycurry-4e6a309ad12f5e1d56e0425b50d37b0b04b0459e.tar.zst |
fix graph generation
Diffstat (limited to 'data')
-rw-r--r-- | data/makefile | 8 | ||||
-rw-r--r-- | data/recipes/.gitignore | 2 |
2 files changed, 10 insertions, 0 deletions
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 |