From 7a1cb6982a5dcf069adde79e6707b8b893831939 Mon Sep 17 00:00:00 2001 From: Georg Hopp Date: Mon, 22 Sep 2014 21:20:58 +0100 Subject: [PATCH] loc action --- Makefile.am | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index a7936ed..d5670a9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -16,5 +16,12 @@ coverage-html: -$(MAKE) -C tests $(AM_MAKEFLAGS) -k $@ endif +REGEX_CCLASS=/^[ \t]*\(TR_CLASS\|TR_INTERFACE\)\(([a-zA-Z0-9_]+)/\2/d,definition/ tags: - ctags -R -V --langdef=cclass --langmap=cclass:.h --regex-cclass='/^[ \t]*\(TR_CLASS\|TR_INTERFACE\)\(([a-zA-Z0-9_]+)/\2/d,definition/' + @ctags -R -V --langdef=cclass --langmap=cclass:.h \ + --regex-cclass='$(REGEX_CCLASS)' + +loc: + @find src/ include/ -not -path testers -and -name "*.[ch]" \ + -exec sed '/\/\*/,/\*\//d;/\/\//d' {} \; | wc -l +