37c3a9a2083b13495149954b429b7611c3f9e760
[platform/upstream/libnice.git] / Makefile.am
1 #
2 # Makefile.am for the Nice Glib ICE library
3 #
4 # (C) 2006, 2007 Collabora Ltd.
5 # (C) 2006, 2007 Nokia Corporation. All rights reserved.
6 #
7 # Licensed under MPL 1.1/LGPL 2.1. See file COPYING.
8
9 include common.mk
10
11 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
12
13 SUBDIRS = \
14         stun \
15         socket \
16         random \
17         agent \
18         nice \
19         gst \
20         tests \
21         docs \
22         examples
23
24 DISTCHECK_CONFIGURE_FLAGS = --disable-assert -enable-gtk-doc --enable-introspection
25
26 EXTRA_DIST = \
27         COPYING.LGPL \
28         COPYING.MPL \
29         autogen.sh \
30         common.mk \
31         scripts/lcov.mk \
32         scripts/lcov.sh \
33         scripts/valgrind-test-driver \
34         m4/introspection.m4 \
35         meson.build \
36         meson_options.txt
37
38 MAINTAINERCLEANFILES = ar-lib
39
40 dist_check_SCRIPTS = \
41         scripts/check-symbols.sh \
42         scripts/make-symbol-list.sh
43
44 lcov:
45         find -name '*.gcda' -delete
46         $(MAKE) $(AM_MAKEFLAGS) check
47         find -type d -name '.libs' | while read d ; do \
48                 mv -fv $$d/*.gc* $$d/.. 2>/dev/null || true ; \
49         done
50         $(MAKE) lcov-report
51
52 lcov-report:
53         mkdir -p lcov
54         lcov -d . -c > lcov/lcov.info
55         lcov -l lcov/lcov.info 2>/dev/null | \
56           egrep '(^/usr|/test.*\.c)' | \
57           cut -d: -f1 > lcov/lcov.remove
58         lcov -r lcov/lcov.info `cat lcov/lcov.remove` 2>/dev/null > lcov/lcov.info.clean
59         genhtml -o lcov lcov/lcov.info.clean
60
61 clean-local:
62         rm -rf doc
63
64 .PHONY: doc lcov-report lcov