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 +