forked from geodynamics/pythia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
50 lines (34 loc) · 1.14 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
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = \
bin \
libsrc
if ENABLE_MPI
SUBDIRS += nemesis
endif
if ENABLE_TESTING
SUBDIRS += tests
endif
EXTRA_DIST = \
CHANGES
install-exec-local:
PYTHONUSERBASE=$(DESTDIR)$(prefix) $(PYTHON) -m pip install --user $(top_srcdir)
.PHONY: coverage-libtests coverage-pytests coverage-html clean-coverage
if ENABLE_TEST_COVERAGE
coverage-libtests:
$(LCOV) --directory tests/libtests --capture --output-file coverage-libtests.info
$(LCOV) --remove coverage-libtests.info '/usr/*' '/Library/*' "v1" "*/object.h" "*/include/cppunit/*" "*/libtests/*" -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