[lvm-devel] stable-2.02 - makefiles: ignore missing files

Zdenek Kabelac zkabelac at sourceware.org
Wed Feb 17 12:01:27 UTC 2021


Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=37a97c8995a4f5ffb65ce6f735816835f9533a29
Commit:        37a97c8995a4f5ffb65ce6f735816835f9533a29
Parent:        dee104668ea5b39518a3a220d360d4624c3f3575
Author:        Zdenek Kabelac <zkabelac at redhat.com>
AuthorDate:    Fri Nov 30 12:54:34 2018 +0100
Committer:     Zdenek Kabelac <zkabelac at redhat.com>
CommitterDate: Wed Feb 17 12:59:36 2021 +0100

makefiles: ignore missing files

---
 Makefile.in | 12 ++++++------
 1 file 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




More information about the lvm-devel mailing list