Makefile.am 905 Bytes
Newer Older
1 2 3 4 5 6 7
#
# Makefile.am for the Nice Glib ICE library
#
# (C) 2006, 2007 Collabora Ltd.
# (C) 2006, 2007 Nokia Corporation. All rights reserved.
#
# Licensed under MPL 1.1/LGPL 2.1. See file COPYING.
dafydd.harries's avatar
import  
dafydd.harries committed
8

9
include common.mk
dafydd.harries's avatar
import  
dafydd.harries committed
10

11
SUBDIRS = \
12
	address \
13 14 15 16 17 18
	local \
	stun \
	tests \
	udp \
	random \
	agent \
19 20 21
	nice

if WITH_GSTREAMER
22
	SUBDIRS += gst
23
endif
Dafydd Harries's avatar
Dafydd Harries committed
24

25 26
DIST_SUBDIRS = $(SUBDIRS) gst

27
EXTRA_DIST = scripts common.mk
28

29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
lcov:
	find -name '*.gcda' -delete
	$(MAKE) $(AM_MAKEFLAGS) check
	find -type d -name '.libs' | while read d ; do \
		mv -fv $$d/*.gc* $$d/.. 2>/dev/null || true ; \
	done
	$(MAKE) lcov-report

lcov-report:
	mkdir -p lcov
	lcov -d . -c > lcov/lcov.info
	lcov -l lcov/lcov.info 2>/dev/null | \
	  egrep '(^/usr|/test.*\.c)' | \
	  cut -d: -f1 > lcov/lcov.remove
	lcov -r lcov/lcov.info `cat lcov/lcov.remove` 2>/dev/null > lcov/lcov.info.clean
	genhtml -o lcov lcov/lcov.info.clean

.PHONY: lcov-report lcov