Update justfile to support the tracker crates

This commit is contained in:
Gwilym Inzani 2023-07-23 00:31:12 +01:00
parent 1aa8e5fd33
commit 992ce37464

View file

@ -15,12 +15,14 @@ test:
just _test-debug agb just _test-debug agb
just _test-debug agb-fixnum just _test-debug agb-fixnum
just _test-debug agb-hashmap just _test-debug agb-hashmap
just _test-debug tracker/agb-tracker
just _test-debug-arm agb just _test-debug-arm agb
just _test-debug tools just _test-debug tools
test-release: test-release:
just _test-release agb just _test-release agb
just _test-release agb-fixnum just _test-release agb-fixnum
just _test-debug tracker/agb-tracker
just _test-release-arm agb just _test-release-arm agb
doctest-agb: doctest-agb:
@ -28,6 +30,7 @@ doctest-agb:
check-docs: check-docs:
(cd agb && cargo doc --target=thumbv6m-none-eabi --no-deps) (cd agb && cargo doc --target=thumbv6m-none-eabi --no-deps)
(cd tracker/agb-tracker && cargo doc --target=thumbv6m-none-eabi --no-deps)
just _build_docs agb-fixnum just _build_docs agb-fixnum
just _build_docs agb-hashmap just _build_docs agb-hashmap
@ -120,7 +123,7 @@ gbafix *args:
(cd agb-gbafix && cargo run --release -- {{args}}) (cd agb-gbafix && cargo run --release -- {{args}})
_all-crates target: _all-crates target:
for CARGO_PROJECT_FILE in agb-*/Cargo.toml agb/Cargo.toml; do \ for CARGO_PROJECT_FILE in agb-*/Cargo.toml agb/Cargo.toml tracker/agb-*/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