From d0fdab71a3f070fc84513754f0de9bcf54e003f3 Mon Sep 17 00:00:00 2001 From: Riccardo Piccoli Date: Sat, 15 Feb 2025 11:39:09 -0500 Subject: [PATCH] add makefile targets for fmt,lint and test Signed-off-by: Riccardo Piccoli --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Makefile b/Makefile index f6c95e1b..45ac4aed 100644 --- a/Makefile +++ b/Makefile @@ -33,3 +33,15 @@ install-units: $(units) install: install-units install -D -m 644 -t ${DESTDIR}$(PREFIX)/lib/dracut/modules.d/30afterburn dracut/30afterburn/* install -D -t ${DESTDIR}$(PREFIX)/bin target/${PROFILE}/afterburn + +.PHONY: fmt +fmt: + cargo fmt -- --check -l + +.PHONY: lint +lint: + cargo clippy --all-targets -- -D warnings + +.PHONY: test +test: + cargo test --all-targets --release