forked from geodynamics/spatialdata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
65 lines (50 loc) · 1.62 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
65
# -*- Makefile -*-
#
# ----------------------------------------------------------------------
#
# Brad T. Aagaard, U.S. Geological Survey
#
# This code was developed as part of the Computational Infrastructure
# for Geodynamics (http://geodynamics.org).
#
# Copyright (c) 2010-2017 University of California, Davis
#
# See COPYING for license information.
#
# ----------------------------------------------------------------------
#
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = \
libsrc \
modulesrc \
spatialdata \
templates
if ENABLE_TESTING
SUBDIRS += tests
endif
DISTCHECK_CONFIGURE_FLAGS = \
--enable-testing \
CPPFLAGS="-I${PROJ4_INCDIR} -I${CPPUNIT_INCDIR} -I${PYTHIA_INCDIR} -I${CIG_INCDIR}" \
LDFLAGS="-L${PROJ4_LIBDIR} -L${CPPUNIT_LIBDIR} -L${CIG_LIBDIR}"
EXTRA_DIST = \
CHANGES
.PHONY: coverage-libtests coverage-pytests coverage-html clean-coverage
if ENABLE_TEST_COVERAGE
coverage-libtests:
$(LCOV) --directory libsrc --capture --output-file coverage-libtests.info
$(LCOV) --remove coverage-libtests.info '/usr/*' '/Library/*' "v1" "*/testing/TestDriver.*" -o coverage-libtests.info
$(LCOV) --list coverage-libtests.info
coverage-pytests:
$(PYTHON_COVERAGE) combine tests/pytests/*/.coverage
$(PYTHON_COVERAGE) xml -o coverage-pytests.xml
coverage-html: coverage-libtests coverage-pytests
genhtml -o coverage-libtests coverage-libtests.info
$(PYTHON_COVERAGE) html -d coverage-pytests
clean-coverage:
$(RM) `find . -name "*.gcda"`
$(RM) `find . -name ".coverage"`
else
coverage-libtests coverage-pytests coverage-html clean-coverage:
$(warning Test coverage not enabled. Ignoring test coverage targets)
endif
# End of file