1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

makefiles: ignore missing files

This commit is contained in:
Zdenek Kabelac 2018-11-30 12:54:34 +01:00
parent dee104668e
commit 37a97c8995

View File

@ -205,13 +205,13 @@ $(LCOV_TRACES):
ifneq ("$(GENHTML)", "") ifneq ("$(GENHTML)", "")
lcov: $(LCOV_TRACES) lcov: $(LCOV_TRACES)
$(RM) -r $(LCOV_REPORTS_DIR) $(RM) -rf $(LCOV_REPORTS_DIR)
$(MKDIR_P) $(LCOV_REPORTS_DIR) $(MKDIR_P) $(LCOV_REPORTS_DIR)
for i in $(LCOV_TRACES); do \ $(LCOV) --capture --directory $(top_builddir) --ignore-errors source \
test -s $$i -a $$(wc -w <$$i) -ge 100 && lc="$$lc $$i"; \ --output-file $(LCOV_REPORTS_DIR)/out.info
done; \ -test ! -s $(LCOV_REPORTS_DIR)/out.info || \
test -z "$$lc" || $(GENHTML) -p @abs_top_builddir@ \ $(GENHTML) -o $(LCOV_REPORTS_DIR) --ignore-errors source \
-o $(LCOV_REPORTS_DIR) $$lc $(LCOV_REPORTS_DIR)/out.info
endif endif
endif endif