makefile: Add static-checks target

Added the 'static-checks' make target to allow developers to easily run
the static checks locally.

Fixes #2206
Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
This commit is contained in:
Wainer dos Santos Moschetta 2021-07-13 15:14:38 -03:00
parent 2f573bceaf
commit afd9785051

View File

@ -29,4 +29,8 @@ $(eval $(call create_all_rules,$(COMPONENTS),$(TOOLS),$(STANDARD_TARGETS)))
generate-protocols: generate-protocols:
make -C src/agent generate-protocols make -C src/agent generate-protocols
.PHONY: all default # Some static checks rely on generated source files of components.
static-checks: build
bash ci/static-checks.sh
.PHONY: all default static-checks