At least on my machine, a run with code coverage enabled produces some
".gcov" files whose names begin with ".". "rm -f *.gcov" fails to match
those, so they don't get cleaned up by "make clean". Fix it.
gcda_files := $(wildcard *.gcda)
lcov.info: $(gcda_files)
- rm -f *.gcov
+ rm -f *.gcov .*.gcov
$(if $^,$(LCOV) -d . -c -o $@ $(LCOVFLAGS) --gcov-tool $(GCOV))
%.c.gcov: %.gcda | lcov.info
.PHONY: clean-coverage
clean-coverage:
rm -rf coverage
- rm -f *.gcda *.gcno lcov.info *.gcov *.gcov.out
+ rm -f *.gcda *.gcno lcov.info *.gcov .*.gcov *.gcov.out
# User-callable target to reset counts between test runs