-
Notifications
You must be signed in to change notification settings - Fork 44
/
Makefile.am
57 lines (46 loc) · 1.35 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
## Process this file with automake to produce Makefile.in
SUBDIRS = gtest libaudiofile sfcommands test examples docs
EXTRA_DIST = \
ACKNOWLEDGEMENTS \
NOTES \
README \
TODO \
COPYING.GPL \
configure configure.ac \
audiofile.spec.in \
audiofile.pc.in \
audiofile-uninstalled.pc.in
pkgconfig_DATA = audiofile.pc
dist-hook: audiofile.spec
cp audiofile.spec $(distdir)
if ENABLE_COVERAGE
coverage:
$(MAKE) coverage-reset
$(MAKE) check
$(MAKE) coverage-report
coverage-reset:
$(LCOV) --base-directory=@top_srcdir@ --directory @top_srcdir@/libaudiofile --zerocounters
coverage-report:
$(LCOV) --directory @top_srcdir@/libaudiofile \
--capture \
--output-file @top_builddir@/lcov.info
$(LCOV) --directory @top_srcdir@/libaudiofile \
--output-file @top_builddir@/lcov.info \
--remove @top_builddir@/lcov.info \
"/usr/include/*" "gtest/*" "*/UT_*"
$(mkdir_p) @top_builddir@/coverage
git_commit=`GIT_DIR=@top_srcdir@/.git git log -1 --pretty=format:%h 2>/dev/null`; \
$(GENHTML) --title "@PACKAGE@ @VERSION@ $$git_commit" \
--output-directory @top_builddir@/coverage @top_builddir@/lcov.info
@echo
@echo 'lcov report can be found here:'
@echo 'file://@abs_top_builddir@/coverage/index.html'
@echo
clean-local:
-rm -rf coverage
.PHONY: coverage-reset coverage coverage-report
else
coverage:
@echo "Code coverage is not enabled."
@exit 1
endif