From b606d8de0208b574314e8fc5b097403c2a4f0404 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Mon, 11 Jul 2022 11:35:55 +0100 Subject: [PATCH] tools: make scc --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a76d95223..d65876121 100644 --- a/Makefile +++ b/Makefile @@ -990,8 +990,16 @@ 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,static,angular . +SCC=scc -z --cocomo-project-type semi-detached -f wide -s code + +scc: $(call def-help,scc, count lines of source code with scc) + @echo Lines of code including tests: + @$(SCC) -i hs,sh,m4,hamlet + +sccv: $(call def-help,sccv, count lines of source code with scc showing all files) + @echo Lines of code including tests: + @$(SCC) -i hs,sh,m4,hamlet --by-file - @echo # `ls $(SOURCEFILES)` # sloc: \