misc: Added a clang-tidy Makefile target so we can run `make clang-tidy` now

This commit is contained in:
dragonmux 2022-06-04 21:28:04 -04:00 committed by Piotr Esden-Tempski
parent 215b935b83
commit 30a7e9f0d4
1 changed files with 4 additions and 2 deletions

View File

@ -24,11 +24,13 @@ endif
all_platforms:
$(Q)$(MAKE) $(MFLAGS) -C src $@
clean:
ifndef NO_LIBOPENCM3
$(Q)$(MAKE) $(MFLAGS) -C libopencm3 $@
endif
$(Q)$(MAKE) $(MFLAGS) -C src $@
.PHONY: clean all_platforms
clang-tidy:
$(Q)scripts/run-clang-tidy.py -s "$(PWD)"
.PHONY: clean all_platforms clang-tidy