Question

With the way my project is currently configured with autotools, when I compile my library, my source files all generate the standard .o and .lo files, but they also generate .gcno extensions. When I use make clean, the first two extensions are cleaned up in all of my source directories, but the .gcno files are still around. I know there's probably a simple Automake variable that I need to set, but I can't find it in any documentation (probably don't know what to search for). Can anyone give me a hint where I should look?

Was it helpful?

Solution

Just list the files in CLEANFILES:

CLEANFILES = foo.gcno bar.gcno ...

That requires an explicit list of files. It might be easier to add a clean-local hook to Makefile.am:

clean-local:
        rm -f *.gcno

There are several clean hooks. See http://www.gnu.org/software/automake/manual/html_node/Clean.html

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top