summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvisvgm/dvisvgm-src/Makefile.am
blob: d74529adf33119702ebb1de1500970bbd21bb156 (plain)
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
## This file is part of dvisvgm
## Copyright (C) 2005-2017 Martin Gieseking <martin.gieseking@uos.de>
##
## Process this file with automake.

AUTOMAKE_OPTIONS = foreign
EXTRA_DIST = COPYING
SUBDIRS = libs src tests doc
ACLOCAL_AMFLAGS = -I m4

if CODE_COVERAGE_ENABLED
lcov_dir=$(top_builddir)/lcov
lcov_file=$(lcov_dir)/lcov.info

lcov-report:
	@mkdir -p $(lcov_dir)
	lcov --capture --directory . --no-external -o $(lcov_file)
	lcov --remove $(lcov_file) "gzstream.*" -o $(lcov_file)
	genhtml --title "dvisvgm" --num-spaces 2 --legend -o $(lcov_dir) $(lcov_file)

lcov-clean:
	@rm -rf $(lcov_dir)
	@find . -name "*.gcda" -exec rm {} \;
	lcov --zerocounters --directory .

coverage: lcov-clean check lcov-report
endif