aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Agar <daniel@agar.ca>2015-01-05 23:16:30 -0500
committerDaniel Agar <daniel@agar.ca>2015-03-02 12:48:19 -0500
commitb1dcb10f25862d7d833d91518a007b618236ad64 (patch)
tree267ece5eabff3b7ec7b7c77455259dab3a94a149 /Makefile
parent0cd5fa2d1d6f388569ccb290cc895459430d7e75 (diff)
downloadpx4-firmware-b1dcb10f25862d7d833d91518a007b618236ad64.tar.gz
px4-firmware-b1dcb10f25862d7d833d91518a007b618236ad64.tar.bz2
px4-firmware-b1dcb10f25862d7d833d91518a007b618236ad64.zip
add make check_format to check astyle code formatting
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7620099f9..201187e02 100644
--- a/Makefile
+++ b/Makefile
@@ -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