Skip to content

Commit

Permalink
add makefile targets for fmt,lint and test
Browse files Browse the repository at this point in the history
Signed-off-by: Riccardo Piccoli <[email protected]>
  • Loading branch information
rccrdpccl committed Dec 16, 2024
1 parent 1a58f96 commit d4f5f6b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d4f5f6b

Please sign in to comment.