-
Notifications
You must be signed in to change notification settings - Fork 98
/
Makefile.am
89 lines (70 loc) · 2.16 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# =================================================================================================
# This code is part of PyLith, developed through the Computational Infrastructure
# for Geodynamics (https://github.com/geodynamics/pylith).
#
# Copyright (c) 2010-2024, University of California, Davis and the PyLith Development Team.
# All rights reserved.
#
# See https://mit-license.org/ and LICENSE.md and for license information.
# =================================================================================================
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = \
libsrc \
modulesrc \
pylith
if ENABLE_TESTING
SUBDIRS += \
tests
endif
DIST_SUBDIRS = $(SUBDIRS) \
examples \
developer \
docs \
release-notes \
templates \
share
dist_noinst_PYTHON = \
applications/pylith \
applications/pylith_cfgsearch \
applications/pylith_dumpparameters \
applications/pylith_eqinfo \
applications/pylith_genxdmf \
applications/pylith_runner \
applications/pylith_viz \
applications/pylith_powerlaw_gendb
EXTRA_DIST = \
AUTHORS \
CITATION.cff \
CHANGES.md \
DEPENDENCIES \
INSTALL \
LICENSE.md \
NEWS \
README.md \
setup.cfg \
setup.py \
docker/pylith-testenv \
docker/pylith-docenv
if ENABLE_TEST_COVERAGE
coverage-%.info:
lcov --directory libsrc --capture --output-file $@
lcov --remove $@ '/usr/*' '/Library/*' "v1" "*/testing/TestDriver.*" -o $@
lcov --list $@
coverage-pytests.xml:
$(PYTHON_COVERAGE) xml -o coverage-pytests.xml tests/pytests/coverage.xml
coverage-%: coverage-%.info
genhtml -o $@ $^
coverage-pytests:
$(PYTHON_COVERAGE) html -d coverage-pytests tests/pytests/coverage.xml
clean-coverage:
$(RM) `find . -name "*.gcda"`
$(RM) `find . -name ".coverage"`
else
coverage-libtests.info coverage-mmstests.info coverage-pytests.xml coverage-fullscale.info coverage-libtests coverage-mmstests coverage-pytests coverage-fullscale:
$(warning Test coverage not enabled. Ignoring test coverage targets)
clean-coverage:
$(warning Test coverage not enabled. Nothing to clean.)
endif
# Remove .info files from list of intermediate files
.SECONDARY: coverage-libtests.info coverage-mmstests.info coverage-pytests.xml coverage-fullscale.info
# End of file