Re: [PATCH 2/6] Makefile: Include subdirectories in "make cover" reports
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Jul 24, 2010, 23:41 UTC
- Message-ID
- <20100724234105.GA14277@burratino>
- In-Reply-To
- <AANLkTim8UIiplPxUdcEWnDpevOUUZARgObhIFCkfO3zl@mail.gmail.com>
Ævar Arnfjörð Bjarmason wrote:
> On Sat, Jul 24, 2010 at 22:37, Thomas Rast <trast@student.ethz.ch> wrote: >> Ævar Arnfjörð Bjarmason wrote:
Show 12 quoted lines
>>> coverage-clean: >>> - rm -f *.gcda *.gcno >>> + $(RM) *.gcov *.gcda *.gcno >>> + $(RM) builtin/*.gcov >>> + $(RM) builtin/*.gcda >>> + $(RM) builtin/*.gcno >> >> By the same logic, the xdiff and compat directories should also be >> included here. Maybe also block-sha1? > > Yeah, actually now that I think about it any C code we compile could > spew those *.gcda *.gcno files, which means:
You can find a list of directories where the Makefile was thinking about building things with "dirs := $(sort $(dir $(OBJECTS)))". See dep_dirs for an example.
Hope that helps, Jonathan