diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2018-11-30 12:54:34 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2021-02-17 12:59:36 +0100 |
commit | 37a97c8995a4f5ffb65ce6f735816835f9533a29 (patch) | |
tree | 14096a32a4a2d03260dad3bc9ac252f38e6c74ec | |
parent | dee104668ea5b39518a3a220d360d4624c3f3575 (diff) | |
download | lvm2-37a97c8995a4f5ffb65ce6f735816835f9533a29.tar.gz |
makefiles: ignore missing files
-rw-r--r-- | Makefile.in | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile.in b/Makefile.in index 3c8f8c8cf..aa1405d1b 100644 --- a/Makefile.in +++ b/Makefile.in @@ -205,13 +205,13 @@ $(LCOV_TRACES): ifneq ("$(GENHTML)", "") lcov: $(LCOV_TRACES) - $(RM) -r $(LCOV_REPORTS_DIR) + $(RM) -rf $(LCOV_REPORTS_DIR) $(MKDIR_P) $(LCOV_REPORTS_DIR) - for i in $(LCOV_TRACES); do \ - test -s $$i -a $$(wc -w <$$i) -ge 100 && lc="$$lc $$i"; \ - done; \ - test -z "$$lc" || $(GENHTML) -p @abs_top_builddir@ \ - -o $(LCOV_REPORTS_DIR) $$lc + $(LCOV) --capture --directory $(top_builddir) --ignore-errors source \ + --output-file $(LCOV_REPORTS_DIR)/out.info + -test ! -s $(LCOV_REPORTS_DIR)/out.info || \ + $(GENHTML) -o $(LCOV_REPORTS_DIR) --ignore-errors source \ + $(LCOV_REPORTS_DIR)/out.info endif endif |