summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2015-04-14 13:28:26 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2015-04-14 13:29:43 +0200
commit4cdf155a87211d269ae31c70856f580111fca186 (patch)
tree9ce8cdacb99b14d5fbb0dd3c0db65b6b52fe99b4 /Makefile.in
parenta084b3122f5df4d9dcd244762132abcb5f46ea6a (diff)
downloadlvm2-4cdf155a87211d269ae31c70856f580111fca186.tar.gz
makefiles: check lcov file has content
genhtml may get confused without content.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index 41eb2e9ab..a7bed8ea5 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -155,7 +155,7 @@ lcov: $(LCOV_TRACES)
$(RM) -r $(LCOV_REPORTS_DIR)
$(MKDIR_P) $(LCOV_REPORTS_DIR)
for i in $(LCOV_TRACES); do \
- test -s $$i && lc="$$lc $$i"; \
+ 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