Skip to content

Commit

Permalink
build: simplify coverage handling
Browse files Browse the repository at this point in the history
  • Loading branch information
evelikov authored and Vudentz committed Feb 20, 2024
1 parent 71d8fda commit 344cf10
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Makefile.am
Expand Up @@ -793,8 +793,8 @@ ell/ell.h: Makefile
maintainer-clean-local:
-rm -rf ell

if COVERAGE
clean-coverage:
if COVERAGE
@lcov --directory $(top_builddir) --zerocounters
$(RM) -r coverage $(top_builddir)/coverage.info

Expand All @@ -803,15 +803,9 @@ coverage: check
--output-file $(top_builddir)/coverage.info
$(AM_V_at)$(MKDIR_P) coverage
@genhtml -o coverage/ $(top_builddir)/coverage.info
endif

clean-local: clean-coverage
-find $(top_builddir) -name "*.gcno" -delete
-find $(top_builddir) -name "*.gcda" -delete
$(RM) -r lib/bluetooth

else
clean-local:
-find $(top_builddir) -name "*.gcno" -delete
-find $(top_builddir) -name "*.gcda" -delete
$(RM) -r lib/bluetooth
endif

0 comments on commit 344cf10

Please sign in to comment.