-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
27 lines (22 loc) · 1.06 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
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = libmoepgf libmoeprlnc libjsm . src tests
# See comment in configure.ac
if AUTOCONF_CODE_COVERAGE_2019_01_06
include $(top_srcdir)/aminclude_static.am
clean-local: code-coverage-clean
distclean-local: code-coverage-dist-clean
else
@CODE_COVERAGE_RULES@
endif
# defaults to $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage[.info]
# which is a bit ugly, since we need the file name in CI steps
# thus including the package version isn't ideal
CODE_COVERAGE_OUTPUT_FILE = ncm-coverage.info
CODE_COVERAGE_OUTPUT_DIRECTORY = ncm-coverage
CODE_COVERAGE_IGNORE_PATTERN = "/usr/include/*"
# When running ./configure in a separate build directory (e.g mkdir build && cd build && ../configure)
# $(abs_top_srcdir) isn't actually a absolute path (equals to something like "ROOT_DIR/build/..").
# The problem lcov can't resolve such relative paths in the --remove arg,
# thus we have to work with just excluding any /tests directory, which is probably fine
CODE_COVERAGE_IGNORE_PATTERN += "**/tests/*"
CODE_COVERAGE_IGNORE_PATTERN += "**/libmoepcommon/include/*"