default: rules.js play.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 sed '/var LAYOUT /,$$d' < play.js > /tmp/play.js node tools/genlayout.js >> /tmp/play.js cp /tmp/play.js play.js