summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJeff Donahue <jeff.donahue@gmail.com>2014-02-25 11:44:28 -0800
committerEvan Shelhamer <shelhamer@imaginarynumber.net>2014-02-26 15:42:37 -0800
commitba95a87e11938d06b243a1de2dd5b89cb3298613 (patch)
tree7184369c19347cc7a475c00929c47ccd386bee8d /Makefile
parent8699d122d9ac7b1d87d171be19165b1e5bb3d34c (diff)
downloadcaffe-ba95a87e11938d06b243a1de2dd5b89cb3298613.tar.gz
caffe-ba95a87e11938d06b243a1de2dd5b89cb3298613.tar.bz2
caffe-ba95a87e11938d06b243a1de2dd5b89cb3298613.zip
add cpplint.py and "make lint" to run on all c source files
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 303eb2a5..acbb697d 100644
--- a/Makefile
+++ b/Makefile
@@ -110,6 +110,11 @@ init:
linecount: clean
cloc --read-lang-def=$(PROJECT).cloc src/$(PROJECT)/
+lint:
+ ./scripts/cpplint.py $(CXX_SRCS) $(HXX_SRCS) $(CU_SRCS) \
+ $(TEST_SRCS) $(TEST_HDRS) $(EXAMPLE_SRCS) \
+ $(PY$(PROJECT)_SRC) $(MAT$(PROJECT)_SRC)
+
test: init $(TEST_BINS)
tools: init $(TOOL_BINS)