]> git.lizzy.rs Git - nothing.git/blobdiff - levels/Makefile
(#587) Use scripts_of_svg.py to generate deps for Makefile
[nothing.git] / levels / Makefile
index d0279e77fcdf9024c0abd3112d02ce1f537e1eb3..20ccd2a4fe4beb42c74cabfd79a73d79370d9d7d 100644 (file)
@@ -3,8 +3,10 @@ TXTS=$(SVGS:.svg=.txt)
 
 all: $(TXTS)
 
-%.txt: %.svg
-       xqilla ../scripts/svg2rects.xqe -i $< -o $@
+.SECONDEXPANSION:
+
+%.txt: %.svg $$(shell python3 ../devtools/scripts_of_svg.py $$*.svg)
+       python3 ../devtools/svg2rects.py $< $@
 
 .PHONY: clean watch