]> git.lizzy.rs Git - nothing.git/blob - levels/Makefile
(#200) Make rigid rects float
[nothing.git] / levels / Makefile
1 SVGS=$(wildcard ./*.svg)
2 TXTS=$(SVGS:.svg=.txt)
3
4 all: $(TXTS)
5
6 %.txt: %.svg
7         xqilla ../devtools/svg2rects.xqe -i $< -o $@
8
9 .PHONY: clean watch
10
11 clean:
12         rm -rfv $(TXTS)
13
14 watch:
15         @echo "Watching for changes to ${SVGS} ..."
16         @inotifywait -m -q -e modify,move_self ${SVGS} | \
17         while read -r filename event; do \
18                 make; \
19         done