-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile.am
64 lines (50 loc) · 1.84 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
SUBDIRS = . tests examples
ACLOCAL_AMFLAGS = -I m4
AM_MAKEFLAGS = -s
lib_LTLIBRARIES = libdavici.la
# current:revision:age, do all of the following for each release:
# source changes: revision++
# interface added, removed, or changed: current++, revision = 0
# interfaces added: age++
# interfaces removed: age = 0
libdavici_la_LDFLAGS = -version-info 1:0:1
libdavici_la_SOURCES = \
davici.c
nobase_include_HEADERS = \
davici.h
AM_CFLAGS = -Wall
clean-local: cov-reset
@find $(top_builddir) -name "*.gcno" -delete
rm -rf $(top_builddir)/api
cov-reset:
@rm -rf $(top_builddir)/coverage
@find $(top_builddir) -name "*.gcda" -delete
@lcov --directory $(top_builddir) --zerocounters || true
cov-makereport: cov-reset check
@mkdir $(top_builddir)/coverage
lcov -c -o $(top_builddir)/coverage/coverage.info -d $(top_builddir) \
--rc lcov_branch_coverage=1
lcov -r $(top_builddir)/coverage/coverage.info '*/tests/*' \
-r $(top_builddir)/coverage/coverage.info '/usr/include/*' \
-o $(top_builddir)/coverage/coverage.cleaned.info \
--rc lcov_branch_coverage=1
genhtml --num-spaces 4 --legend --branch-coverage --ignore-errors source \
-t "$(PACKAGE_STRING)" -o $(top_builddir)/coverage/html \
-p $$(readlink -m $(abs_top_srcdir)) \
$(top_builddir)/coverage/coverage.cleaned.info
cov-report: cov-makereport
xdg-open $(top_builddir)/coverage/html/index.html
doxygen: Doxyfile
@test -d $(top_builddir)/api || doxygen
@! find Doxyfile $(top_srcdir) \
\( -name '*.h' -o -name '*.md' \) -newer $(top_builddir)/api | \
grep -q '' || doxygen && touch $(top_builddir)/api
Doxyfile: Doxyfile.in
$(AM_V_GEN) \
sed \
-e "s:\@PACKAGE_VERSION\@:$(PACKAGE_VERSION):" \
-e "s:\@PACKAGE_NAME\@:$(PACKAGE_NAME):" \
-e "s:\@SRC_DIR\@:$(srcdir)/README.md $(srcdir)/davici.h:g" \
$(srcdir)/[email protected] > $@
CLEANFILES = Doxyfile
EXTRA_DIST = Doxyfile.in