Makefile.am 1.09 KB
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.
Olivier Crête's avatar
import  
Olivier Crête committed
8

9
include common.mk
Olivier Crête's avatar
import  
Olivier Crête committed
10

11
SUBDIRS = \
12
	stun \
13
	socket \
14
15
	random \
	agent \
Youness Alaoui's avatar
Youness Alaoui committed
16
	nice \
17
	gst \
18
19
	docs \
	tests
20

Youness Alaoui's avatar
Youness Alaoui committed
21
DISTCHECK_CONFIGURE_FLAGS = --disable-assert -enable-gtk-doc
22

23
EXTRA_DIST = \
24
25
26
	COPYING.LGPL \
	COPYING.MPL \
	autogen.sh \
27
28
29
	common.mk \
	scripts/lcov.mk \
	scripts/lcov.sh \
30
31
	scripts/valgrind.sh \
	win32
32
33
34
35

dist_check_SCRIPTS = \
	scripts/check-symbols.sh \
	scripts/make-symbol-list.sh
36

37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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

54
55
56
57
clean-local:
	rm -rf doc

.PHONY: doc lcov-report lcov