summaryrefslogtreecommitdiff
path: root/data/makefile
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-06-26 00:20:43 +0200
committermetamuffin <metamuffin@disroot.org>2024-06-26 00:20:43 +0200
commit4e6a309ad12f5e1d56e0425b50d37b0b04b0459e (patch)
tree5eae032af2b5bd0c4a16e35dc9e76dc43adb6c3f /data/makefile
parentd6d561c7e4f9d65718111a1dd519624b44aeec7f (diff)
downloadhurrycurry-4e6a309ad12f5e1d56e0425b50d37b0b04b0459e.tar
hurrycurry-4e6a309ad12f5e1d56e0425b50d37b0b04b0459e.tar.bz2
hurrycurry-4e6a309ad12f5e1d56e0425b50d37b0b04b0459e.tar.zst
fix graph generation
Diffstat (limited to 'data/makefile')
-rw-r--r--data/makefile8
1 files changed, 8 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 >$@<$<