version 0.1.3
[sipe-libnice.git] / Makefile.am
blob8efc185bc2545e062e50fa72826642865d44f741
2 # Makefile.am for the Nice Glib ICE library
4 # (C) 2006, 2007 Collabora Ltd.
5 # (C) 2006, 2007 Nokia Corporation. All rights reserved.
7 # Licensed under MPL 1.1/LGPL 2.1. See file COPYING.
9 include common.mk
11 SUBDIRS = \
12         stun \
13         socket \
14         random \
15         agent \
16         nice \
17         gst \
18         docs \
19         tests
21 DISTCHECK_CONFIGURE_FLAGS = --disable-assert -enable-gtk-doc
23 EXTRA_DIST = \
24         COPYING.LGPL \
25         COPYING.MPL \
26         autogen.sh \
27         common.mk \
28         scripts/lcov.mk \
29         scripts/lcov.sh \
30         scripts/valgrind.sh
32 dist_check_SCRIPTS = \
33         scripts/check-symbols.sh \
34         scripts/make-symbol-list.sh
36 lcov:
37         find -name '*.gcda' -delete
38         $(MAKE) $(AM_MAKEFLAGS) check
39         find -type d -name '.libs' | while read d ; do \
40                 mv -fv $$d/*.gc* $$d/.. 2>/dev/null || true ; \
41         done
42         $(MAKE) lcov-report
44 lcov-report:
45         mkdir -p lcov
46         lcov -d . -c > lcov/lcov.info
47         lcov -l lcov/lcov.info 2>/dev/null | \
48           egrep '(^/usr|/test.*\.c)' | \
49           cut -d: -f1 > lcov/lcov.remove
50         lcov -r lcov/lcov.info `cat lcov/lcov.remove` 2>/dev/null > lcov/lcov.info.clean
51         genhtml -o lcov lcov/lcov.info.clean
53 clean-local:
54         rm -rf doc
56 .PHONY: doc lcov-report lcov