add make check_format to check astyle code formatting

This commit is contained in:
Daniel Agar
2015-03-02 12:48:19 -05:00
parent 0cd5fa2d1d
commit b1dcb10f25
4 changed files with 35 additions and 0 deletions
+4
View File
@@ -262,6 +262,10 @@ testbuild:
tests: generateuorbtopicheaders
$(Q) (mkdir -p $(PX4_BASE)/unittests/build && cd $(PX4_BASE)/unittests/build && cmake .. && $(MAKE) unittests)
.PHONY: format check_format
check_format:
$(Q) (./Tools/check_code_style.sh | sort -n)
#
# Cleanup targets. 'clean' should remove all built products and force
# a complete re-compilation, 'distclean' should remove everything