mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
Update the justfile
This commit is contained in:
parent
7a059b2142
commit
b963065ad6
14
justfile
14
justfile
|
@ -11,21 +11,15 @@ build-release:
|
||||||
just _build-release tracker/agb-tracker
|
just _build-release tracker/agb-tracker
|
||||||
clippy:
|
clippy:
|
||||||
just _all-crates _clippy
|
just _all-crates _clippy
|
||||||
just _clippy tools
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
just _test-debug agb
|
just _test-debug agb
|
||||||
just _test-multiboot
|
just _test-multiboot
|
||||||
just _test-debug agb-fixnum
|
|
||||||
just _test-debug agb-hashmap
|
|
||||||
just _test-debug tracker/agb-tracker
|
just _test-debug tracker/agb-tracker
|
||||||
just _test-debug-arm agb
|
just _test-debug-arm agb
|
||||||
just _test-debug tools
|
|
||||||
just _test-debug emulator
|
|
||||||
|
|
||||||
test-release:
|
test-release:
|
||||||
just _test-release agb
|
just _test-release agb
|
||||||
just _test-release agb-fixnum
|
|
||||||
just _test-release tracker/agb-tracker
|
just _test-release tracker/agb-tracker
|
||||||
just _test-release-arm agb
|
just _test-release-arm agb
|
||||||
|
|
||||||
|
@ -35,8 +29,7 @@ doctest-agb:
|
||||||
check-docs:
|
check-docs:
|
||||||
(cd agb && cargo doc --target=thumbv4t-none-eabi --no-deps)
|
(cd agb && cargo doc --target=thumbv4t-none-eabi --no-deps)
|
||||||
(cd tracker/agb-tracker && cargo doc --target=thumbv4t-none-eabi --no-deps)
|
(cd tracker/agb-tracker && cargo doc --target=thumbv4t-none-eabi --no-deps)
|
||||||
just _build_docs agb-fixnum
|
cargo doc --no-deps
|
||||||
just _build_docs agb-hashmap
|
|
||||||
|
|
||||||
_build_docs crate:
|
_build_docs crate:
|
||||||
(cd "{{crate}}" && cargo doc --no-deps)
|
(cd "{{crate}}" && cargo doc --no-deps)
|
||||||
|
@ -46,10 +39,9 @@ clean:
|
||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
just _all-crates _fmt
|
just _all-crates _fmt
|
||||||
just _fmt tools
|
|
||||||
fmt-check:
|
fmt-check:
|
||||||
just _all-crates _fmt-check
|
just _all-crates _fmt-check
|
||||||
just _fmt-check tools
|
|
||||||
|
|
||||||
run-example example:
|
run-example example:
|
||||||
just _build-example "{{example}}"
|
just _build-example "{{example}}"
|
||||||
|
@ -148,7 +140,7 @@ debug *args:
|
||||||
(cd agb-debug && cargo build --release && cd "{{invocation_directory()}}" && "$CARGO_TARGET_DIR/release/agb-debug" {{args}})
|
(cd agb-debug && cargo build --release && cd "{{invocation_directory()}}" && "$CARGO_TARGET_DIR/release/agb-debug" {{args}})
|
||||||
|
|
||||||
_all-crates target:
|
_all-crates target:
|
||||||
for CARGO_PROJECT_FILE in agb-*/Cargo.toml agb/Cargo.toml tracker/agb-*/Cargo.toml; do \
|
for CARGO_PROJECT_FILE in agb/Cargo.toml tracker/agb-tracker/Cargo.toml ./Cargo.toml; do \
|
||||||
PROJECT_DIR=$(dirname "$CARGO_PROJECT_FILE"); \
|
PROJECT_DIR=$(dirname "$CARGO_PROJECT_FILE"); \
|
||||||
just "{{target}}" "$PROJECT_DIR" || exit $?; \
|
just "{{target}}" "$PROJECT_DIR" || exit $?; \
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue