From 7d5aadbbf73b1309de2d2ba74a01bc021f08762d Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Tue, 7 Oct 2025 16:26:49 +0200 Subject: [PATCH] clean up justfile --- justfile | 41 +++++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/justfile b/justfile index 3272fa1..eb8ff30 100644 --- a/justfile +++ b/justfile @@ -1,25 +1,26 @@ -check: check-zynq check-tools check-boot-image +all: check-all build-all clean-all fmt-all clippy-all -[working-directory: 'zynq'] -check-zynq: - cargo check -[working-directory: 'tools'] -check-tools: - cargo check -[working-directory: 'zynq7000-boot-image'] -check-boot-image: - cargo check +check-all: (check "zynq") (check "tools") (check "zynq7000-boot-image") +clean-all: (clean "zynq") (clean "tools") (clean "zynq7000-boot-image") +build-all: (build "zynq") (build "tools") (build "zynq7000-boot-image") +fmt-all: (fmt "zynq") (fmt "tools") (fmt "zynq7000-boot-image") +clippy-all: (clippy "zynq") (clippy "tools") (clippy "zynq7000-boot-image") + +check target: + cd {{target}} && cargo check + +build target: + cd {{target}} && cargo build + +clean target: + cd {{target}} && cargo clean + +fmt target: + cd {{target}} && cargo fmt --all -- --check + +clippy target: + cd {{target}} && cargo clippy -- -D warnings -[working-directory: 'zynq'] -build-zynq: - cargo check -[working-directory: 'tools'] -build-tools: - cargo check -[working-directory: 'zynq7000-boot-image'] -build-boot-image: - cargo check - [working-directory: 'zynq-boot-image/staging'] bootgen: bootgen -arch zynq -image boot.bif -o boot.bin -w on