summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2014-03-26 16:34:22 +0100
committerOndřej Surý <ondrej@sury.org>2014-03-26 16:34:22 +0100
commite1b1c850ea35627d0174b39aebeba855c2c1d1fc (patch)
tree3e03a47b4d9cc9dc4e0d5b383dd9c807bf8fdbb0 /Makefile.am
parent Merge branch 'gcov' into 'master' (diff)
downloadknot-e1b1c850ea35627d0174b39aebeba855c2c1d1fc.tar.xz
knot-e1b1c850ea35627d0174b39aebeba855c2c1d1fc.zip
Add a little hack to help lcov genhtml find flex and bison source files
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 274e0669b..df761b9b6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -53,7 +53,9 @@ endif
code-coverage-html:
if CODE_COVERAGE_ENABLED
@echo "Generating code coverage HTML report (this might take a while)"
+ @cp src/knot/conf/cf-lex.l src/knot/conf/cf-parse.y src/
LANG=C $(GENHTML) $(code_coverage_quiet) --prefix $(top_builddir) --output-directory "$(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info" --ignore-errors source
+ -@rm src/cf-lex.l src/cf-parse.y
else
@echo "You need to run configure with --enable-code-coverage to enable code coverage"
endif