-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.am
39 lines (30 loc) · 1.09 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
SUBDIRS = src test utils
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = CHANGES LICENSE dist_version m4/snarf_mfem.py m4/snarf_mpi4py.py m4/wrap_lines.py src/tps.py
# --------------------------------------------------
# Revision control support for external distribution
# --------------------------------------------------
if GIT_CHECKOUT
dist_version: FORCE
@GIT_REVISION@ > $(top_srcdir)/dist_version
FORCE:
endif
dist-hook:
rm -rf `find $(distdir)/ -name .gitattributes`
# -------------------------------------------
# Optional support for code coverage analysis
# -------------------------------------------
if CODE_COVERAGE_ENABLED
gcovr_dir=$(top_builddir)/coverage/html
gcovr-report:
@mkdir -p $(gcovr_dir)
gcovr -r $(top_srcdir) --gcov-filter $(top_builddir) --exclude-unreachable-branches --exclude-throw-branches \
--html-details $(gcovr_dir)/gcovr-report.html
gcovr-reset:
@rm -rf $(gcovr_dir)
@find . -name "*.gcda" -exec rm -f {} \;
gcovr-clean: gcovr-reset
@find . -name "*.gcno" -exec rm -f {} \;
coverage: gcovr-reset check gcovr-report
endif