roguelike-game/Makefile

29 lines
845 B
Makefile
Raw Normal View History

include help-system.mk
run: $(call print-help, run, Runs the binary in develop mode)
2021-12-01 11:03:27 -05:00
cargo run
run-pi: $(call print-help, run-pi, Sets appropriate flags so that the game runs on a Raspberry Pi)
MESA_GL_VERSION_OVERRIDE=3.0 MESA_GLSL_VERSION_OVERRIDE=330 cargo run
clean: $(call print-help, clean, Removes save file and compilation artifacts)
2021-12-24 14:27:44 -05:00
rm -f savegame.json
cargo clean
check: $(call print-help, check, Check code syntax)
cargo check
2021-12-01 11:42:17 -05:00
lint: $(call print-help, lint, Check code syntax and style)
2021-11-19 11:32:03 -05:00
cargo clippy
fmt: $(call print-help, fmt, Runs formatter on code)
2021-12-10 20:16:48 -05:00
cargo +nightly fmt
fix: $(call print-help, fix, Fixes some warnings, then runs the formatter)
2021-12-01 11:03:27 -05:00
cargo fix --allow-dirty --allow-staged
cargo +nightly fmt
2021-12-01 11:03:27 -05:00
docs: $(call print-help, docs, Generates code docs)
2022-01-21 15:55:13 -05:00
cargo doc
.phony: run-pi clean check run fmt fix lint docs