문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top