27 lines
518 B
Makefile
27 lines
518 B
Makefile
.PHONY: watch
|
|
watch:
|
|
cargo watch --clear -x 'clippy' -x 'test --all'
|
|
|
|
.PHONY: build
|
|
build:
|
|
cargo build
|
|
|
|
.PHONY: test
|
|
test:
|
|
cargo test
|
|
|
|
.PHONY: run
|
|
run:
|
|
# RUST_BACKTRACE=1 cargo run -- game.ayin
|
|
cargo run -- game.ayin
|
|
|
|
.PHONY: review
|
|
review:
|
|
cargo insta review
|
|
|
|
.PHONY: wasm
|
|
wasm:
|
|
cargo build --target wasm32-unknown-unknown --release
|
|
cp target/wasm32-unknown-unknown/release/ayin.wasm html/
|
|
cp -r assets/ html/
|
|
(cd html/ && wget https://not-fl3.github.io/miniquad-samples/mq_js_bundle.js -O mq_js_bundle.js)
|