diff options
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  |