From 26ba907a2e8e0ce24e23481c47947591d70978bf Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sun, 17 Jan 2016 08:52:19 -0800 Subject: [PATCH] tools: make cloc, counts lines of code --- Makefile | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 629177db4..542be015f 100644 --- a/Makefile +++ b/Makefile @@ -1273,13 +1273,12 @@ tagrelease: \ # @darcs changes --from-tag $(FROMTAG) |grep '^\w' |cut -c 31- |sort |uniq # @echo -# showloc: \ -# $(call def-help,showloc,\ -# \ -# ) -# @echo Current lines of code including tests: -# @sloccount `ls $(SOURCEFILES)` | grep haskell: -# @echo +cloc: \ + $(call def-help,cloc, count lines of source code ) + @echo Lines of code including tests: + @cloc --exclude-lang=HTML --exclude-dir=.stack-work,.idea,dist,old,bin,doc,site,.tutorial-data . + @echo +# `ls $(SOURCEFILES)` # sloc: \ # $(call def-help,sloc,\