buildsys: add 'make lint'

for now we only activate lints for code that is "outright
wrong"

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2019-09-11 13:59:56 +02:00
parent b21851cc5c
commit d159610265

View File

@ -97,6 +97,10 @@ cargo-build:
$(COMPILED_BINS): cargo-build
.PHONY: lint
lint:
cargo clippy -- -A clippy::all -D clippy::correctness
install: $(COMPILED_BINS)
install -dm755 $(DESTDIR)$(BINDIR)
$(foreach i,$(USR_BIN), \