add target for clean and test and have a cargo target dir

This commit is contained in:
Gwilym Kuiper 2022-02-24 21:54:16 +00:00
parent 67fbca07e4
commit b1b860edaf

View file

@ -1,5 +1,13 @@
export CARGO_TARGET_DIR := env_var_or_default('CARGO_TARGET_DIR', justfile_directory() + "/target")
build: build-roms
test:
just _all-crates _test-debug
clean:
just _all-crates _clean
ci: && build-roms
just _all-crates _build
just _all-crates _test-debug
@ -55,3 +63,5 @@ _test-debug crate:
if echo "{{crate}}" | grep -qE '^agb'; then (cd "{{crate}}" && cargo test); fi
_clippy crate:
if echo "{{crate}}" | grep -qE '^agb'; then (cd "{{crate}}" && cargo clippy); fi
_clean crate:
(cd "{{crate}}" && cargo clean)