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