aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-02-20 09:11:52 -0700
committerBen Johnson <benbjohnson@yahoo.com>2014-02-20 09:11:52 -0700
commit00bdc4757fc8b68c1c7eddbf00da28ae2484dbc5 (patch)
tree0a2c25b9aff6ed87c6ab4d1e0c8959a56a48f930 /Makefile
parentRead-only transactional block. (diff)
downloaddedo-00bdc4757fc8b68c1c7eddbf00da28ae2484dbc5.tar.gz
dedo-00bdc4757fc8b68c1c7eddbf00da28ae2484dbc5.tar.xz
Add 'make cloc'.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b89032d..29ea2f5 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,10 @@ COVERPROFILE=/tmp/c.out
bench: benchpreq
go test -v -test.bench=$(BENCH)
+# http://cloc.sourceforge.net/
+cloc:
+ @cloc --not-match-f='Makefile|_test.go' .
+
cover: fmt
go test -coverprofile=$(COVERPROFILE) -test.run=$(TEST) .
go tool cover -html=$(COVERPROFILE)
@@ -21,4 +25,4 @@ test: fmt
@echo "=== RACE DETECTOR ==="
@go test -v -race -test.run=Parallel
-.PHONY: bench cover fmt test
+.PHONY: bench cloc cover fmt test