]> git.lizzy.rs Git - nothing.git/blobdiff - levels/Makefile
Use wrong_argument_type everywhere
[nothing.git] / levels / Makefile
index 8890cf95d2557a1b6baec2cd08ae576ef0abc680..312e05c1b3457aa76e10acbdf424fad85cec0e3d 100644 (file)
@@ -1,12 +1,20 @@
 SVGS=$(wildcard ./*.svg)
+LISPS=$(wildcard ./*.lisp)
 TXTS=$(SVGS:.svg=.txt)
 
 all: $(TXTS)
 
-%.txt: %.svg
-       xqilla ../scripts/svg2rects.xqe -i $< -o $@
+%.txt: %.svg $(LISPS)
+       python3 ../devtools/svg2rects.py $< $@
 
-.PHONY: clean
+.PHONY: clean watch
 
 clean:
        rm -rfv $(TXTS)
+
+watch:
+       @echo "Watching for changes to ${SVGS} ..."
+       @inotifywait -m -q -e modify,move_self ${SVGS} | \
+       while read -r filename event; do \
+               make; \
+       done