Blame aminclude_static.am

Packit aea12f
Packit aea12f
# aminclude_static.am generated automatically by Autoconf
Packit Service 991b93
# from AX_AM_MACROS_STATIC on Wed Jun  3 15:05:51 CEST 2020
Packit aea12f
Packit aea12f
Packit aea12f
# Code coverage
Packit aea12f
#
Packit aea12f
# Optional:
Packit aea12f
#  - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
Packit aea12f
#    Multiple directories may be specified, separated by whitespace.
Packit aea12f
#    (Default: $(top_builddir))
Packit aea12f
#  - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
Packit aea12f
#    by lcov for code coverage. (Default:
Packit aea12f
#    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
Packit aea12f
#  - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
Packit aea12f
#    reports to be created. (Default:
Packit aea12f
#    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
Packit aea12f
#  - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
Packit aea12f
#    set to 0 to disable it and leave empty to stay with the default.
Packit aea12f
#    (Default: empty)
Packit aea12f
#  - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
Packit aea12f
#    instances. (Default: based on )
Packit aea12f
#  - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
Packit aea12f
#    instances. (Default: )
Packit aea12f
#  - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
Packit aea12f
#  - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
Packit aea12f
#    collecting lcov instance. (Default: )
Packit aea12f
#  - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
Packit aea12f
#    instance. (Default: )
Packit aea12f
#  - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
Packit aea12f
#    lcov instance. (Default: empty)
Packit aea12f
#  - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
Packit aea12f
#    instance. (Default: )
Packit aea12f
#  - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
Packit aea12f
#    genhtml instance. (Default: based on )
Packit aea12f
#  - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
Packit aea12f
#    instance. (Default: )
Packit aea12f
#  - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
Packit aea12f
#
Packit aea12f
# The generated report will be titled using the $(PACKAGE_NAME) and
Packit aea12f
# $(PACKAGE_VERSION). In order to add the current git hash to the title,
Packit aea12f
# use the git-version-gen script, available online.
Packit aea12f
# Optional variables
Packit aea12f
# run only on top dir
Packit aea12f
if CODE_COVERAGE_ENABLED
Packit aea12f
 ifeq ($(abs_builddir), $(abs_top_builddir))
Packit aea12f
CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
Packit aea12f
CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
Packit aea12f
CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
Packit aea12f
Packit aea12f
CODE_COVERAGE_BRANCH_COVERAGE ?=
Packit aea12f
CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),--rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
Packit aea12f
CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
Packit aea12f
CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
Packit aea12f
CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
Packit aea12f
CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
Packit aea12f
CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
Packit aea12f
CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
Packit aea12f
CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=$(if $(CODE_COVERAGE_BRANCH_COVERAGE),--rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
Packit aea12f
CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
Packit aea12f
CODE_COVERAGE_IGNORE_PATTERN ?=
Packit aea12f
Packit aea12f
GITIGNOREFILES = $(GITIGNOREFILES) $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
Packit aea12f
code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
Packit aea12f
code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
Packit aea12f
code_coverage_v_lcov_cap_0 = @echo "  LCOV   --capture" $(CODE_COVERAGE_OUTPUT_FILE);
Packit aea12f
code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
Packit aea12f
code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
Packit aea12f
code_coverage_v_lcov_ign_0 = @echo "  LCOV   --remove /tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN);
Packit aea12f
code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
Packit aea12f
code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
Packit aea12f
code_coverage_v_genhtml_0 = @echo "  GEN   " "$(CODE_COVERAGE_OUTPUT_DIRECTORY)";
Packit aea12f
code_coverage_quiet = $(code_coverage_quiet_$(V))
Packit aea12f
code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
Packit aea12f
code_coverage_quiet_0 = --quiet
Packit aea12f
Packit aea12f
# sanitizes the test-name: replaces with underscores: dashes and dots
Packit aea12f
code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
Packit aea12f
Packit aea12f
# Use recursive makes in order to ignore errors during check
Packit aea12f
check-code-coverage:
Packit aea12f
	-$(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
Packit aea12f
	$(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
Packit aea12f
Packit aea12f
# Capture code coverage data
Packit aea12f
code-coverage-capture: code-coverage-capture-hook
Packit aea12f
	$(code_coverage_v_lcov_cap)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(call code_coverage_sanitize,$(PACKAGE_NAME)-$(PACKAGE_VERSION))" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_OPTIONS)
Packit aea12f
	$(code_coverage_v_lcov_ign)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_RMOPTS)
Packit aea12f
	-@rm -f "$(CODE_COVERAGE_OUTPUT_FILE).tmp"
Packit aea12f
	$(code_coverage_v_genhtml)LANG=C $(GENHTML) $(code_coverage_quiet) $(addprefix --prefix ,$(CODE_COVERAGE_DIRECTORY)) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
Packit aea12f
	@echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
Packit aea12f
Packit aea12f
code-coverage-clean:
Packit aea12f
	-$(LCOV) --directory $(top_builddir) -z
Packit aea12f
	-rm -rf "$(CODE_COVERAGE_OUTPUT_FILE)" "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "$(CODE_COVERAGE_OUTPUT_DIRECTORY)"
Packit aea12f
	-find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
Packit aea12f
Packit aea12f
code-coverage-dist-clean:
Packit aea12f
Packit aea12f
AM_DISTCHECK_CONFIGURE_FLAGS = $(AM_DISTCHECK_CONFIGURE_FLAGS) --disable-code-coverage
Packit aea12f
 else # ifneq ($(abs_builddir), $(abs_top_builddir))
Packit aea12f
check-code-coverage:
Packit aea12f
Packit aea12f
code-coverage-capture: code-coverage-capture-hook
Packit aea12f
Packit aea12f
code-coverage-clean:
Packit aea12f
Packit aea12f
code-coverage-dist-clean:
Packit aea12f
 endif # ifeq ($(abs_builddir), $(abs_top_builddir))
Packit aea12f
else #! CODE_COVERAGE_ENABLED
Packit aea12f
# Use recursive makes in order to ignore errors during check
Packit aea12f
check-code-coverage:
Packit aea12f
	@echo "Need to reconfigure with --enable-code-coverage"
Packit aea12f
# Capture code coverage data
Packit aea12f
code-coverage-capture: code-coverage-capture-hook
Packit aea12f
	@echo "Need to reconfigure with --enable-code-coverage"
Packit aea12f
Packit aea12f
code-coverage-clean:
Packit aea12f
Packit aea12f
code-coverage-dist-clean:
Packit aea12f
Packit aea12f
endif #CODE_COVERAGE_ENABLED
Packit aea12f
# Hook rule executed before code-coverage-capture, overridable by the user
Packit aea12f
code-coverage-capture-hook:
Packit aea12f
Packit aea12f
.PHONY: check-code-coverage code-coverage-capture code-coverage-dist-clean code-coverage-clean code-coverage-capture-hook