all: $(TXTS)
-%.txt: %.svg
- xqilla ../scripts/svg2rects.xqe -i $< -o $@
+.SECONDEXPANSION:
-.PHONY: clean
+%.txt: %.svg $$(shell python3 ../devtools/scripts_of_svg.py $$*.svg)
+ python3 ../devtools/svg2rects.py $< $@
+
+.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