Skip to content
Snippets Groups Projects
Makefile 561 B
Newer Older
Louis's avatar
Louis committed
linux-deps:
	sudo apt-get install -yyq clang pkg-config libx11-dev libasound-dev libudev-dev lld

wayland-deps:
	sudo apt-get install -yyq libwayland-dev libxkbcommon-dev

cargo-deps:
	rustup target install wasm32-unknown-unknown
	cargo install -f wasm-server-runner

setup-x11: linux-deps cargo-deps
setup-wayland: linux-deps wayland-deps cargo-deps

run:
	RUSTFLAGS="-Awarnings" \
	cargo run --release --features "bevy/dynamic" -p game_core

run-web:
	cd game_core && trunk serve --release

check:
	cargo check --release --features "bevy/dynamic" -p game_core