From 84f264c6fa2b2435aa1171412f68d81356206f83 Mon Sep 17 00:00:00 2001 From: Georg Hopp Date: Thu, 7 Nov 2013 22:48:06 +0000 Subject: [PATCH] add make target to measure lines of code --- Makefile.am | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile.am b/Makefile.am index 0741ee0..e9a1226 100644 --- a/Makefile.am +++ b/Makefile.am @@ -75,6 +75,9 @@ endif tags: ctags -R -V --langdef=cclass --langmap=cclass:.h --regex-cclass='/^[ \t]*CLASS\(([a-zA-Z0-9_]+)/\1/d,definition/' +loc: + find src/ include/ -not -path testers -and -name "*.[ch]" -exec sed '/\/\*/,/\*\//d;/\/\//d' {} \; | wc -l + TR_DIRS = $(DESTDIR)/$(trdatadir)/assets/doc \ $(DESTDIR)/$(trdatadir)/assets/html/doc \ $(DESTDIR)/$(trdatadir)/assets/coverage \