Makefile.am 550 Bytes
ACLOCAL_AMFLAGS = -I m4

EXTRA_DIST = include

SUBDIRS = src tests docs include

.PHONY: docs coverage-html

if HAVE_DOXYGEN
docs:
	-$(MAKE) -C docs $(AM_MAKEFLAGS) -k $@
endif

if HAVE_GCOV
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='$(REGEX_CCLASS)'

loc:
	@find src/ include/ -not -path testers -and -name "*.[ch]" \
		-exec sed '/\/\*/,/\*\//d;/\/\//d' {} \; | wc -l