diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2015-04-14 13:28:26 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2015-04-14 13:29:43 +0200 |
commit | 4cdf155a87211d269ae31c70856f580111fca186 (patch) | |
tree | 9ce8cdacb99b14d5fbb0dd3c0db65b6b52fe99b4 /Makefile.in | |
parent | a084b3122f5df4d9dcd244762132abcb5f46ea6a (diff) | |
download | lvm2-4cdf155a87211d269ae31c70856f580111fca186.tar.gz |
makefiles: check lcov file has content
genhtml may get confused without content.
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 2 |
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 |