Makefile 349 B

123456789101112131415161718
  1. all: out/index.html out/dist/main.js
  2. 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
  5. yarn build
  6. out/index.html: index.html build.py
  7. mkdir -p out
  8. python3 build.py --only-html
  9. out/dist/main.js: dist/main.js
  10. rm -rf out/dist
  11. cp -r dist/ out/dist
  12. clean:
  13. rm -rf pkg out dist