summaryrefslogtreecommitdiff
path: root/Makefile
blob: 8a09b8b130f0a98d3b964514edf660f60c7f1803 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
default: data.js rules.js play.js
data.js: tools/gendata.js
	node tools/gendata.js
rules.js: events.txt
	sed '/const CODE /,$$d' < rules.js > /tmp/rules.js
	node tools/gencode.js >> /tmp/rules.js
	cp /tmp/rules.js rules.js
play.js: tools/layout.svg tools/genlayout.py
	sed -n -e '1,/BEGIN LAYOUT DATA/p' < play.js > /tmp/play.js
	python3 tools/genlayout.py >> /tmp/play.js
	sed -n -e '/END LAYOUT DATA/,$$p' < play.js >> /tmp/play.js
	cp /tmp/play.js play.js