diff options
Diffstat (limited to 'rules/lcov.mak')
-rw-r--r-- | rules/lcov.mak | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rules/lcov.mak b/rules/lcov.mak index 7ceeaaeb..0e2e1d0e 100644 --- a/rules/lcov.mak +++ b/rules/lcov.mak @@ -17,6 +17,11 @@ lcov-run: # generate report based on current coverage data lcov-report: + @if test -z "$(LCOV_PATH)"; then \ + echo "WARNING: the 'lcov' executable was not found"; \ + echo "Use the \$$LCOV_PATH variable to set its location"; \ + exit 1; \ + fi @mkdir -p $(COVERAGE_DIR) @$(LCOV_PATH) --quiet --compat-libtool --directory . --capture --output-file $(COVERAGE_DIR)/lcov.info @$(LCOV_PATH) --quiet --compat-libtool -l $(COVERAGE_DIR)/lcov.info | grep -v "`cd $(top_srcdir) && pwd`" | cut -d: -f1 > $(COVERAGE_DIR)/remove |