all: out/index.html out/dist/main.js
pkg/matzo_web_bg.wasm: src/lib.rs Cargo.toml Cargo.lock
wasm-pack build --target web
dist/main.js: js/*.js package.json pkg/matzo_web_bg.wasm
yarn install
yarn build
out/index.html: index.html build.py examples/*.matzo
mkdir -p out
python3 build.py --only-html
out/dist/main.js: dist/main.js
rm -rf out/dist
cp -r dist/ out/dist
clean:
rm -rf pkg out dist