Makefile 406 B

12345678910111213141516171819
  1. all: out/index.html out/dist/main.js
  2. pkg/matzo_web_bg.wasm: src/lib.rs Cargo.toml Cargo.lock
  3. wasm-pack build --target web
  4. dist/main.js: js/*.js package.json pkg/matzo_web_bg.wasm
  5. yarn install
  6. yarn build
  7. out/index.html: index.html build.py examples/*.matzo
  8. mkdir -p out
  9. python3 build.py --only-html
  10. out/dist/main.js: dist/main.js
  11. rm -rf out/dist
  12. cp -r dist/ out/dist
  13. clean:
  14. rm -rf pkg out dist