From: Alex Bennée Date: Fri, 4 Feb 2022 20:43:12 +0000 (+0000) Subject: Makefile: also remove .gcno files when cleaning X-Git-Tag: v7.0.0-rc0~59^2~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=029e2da880f323d97c644a9ee70150c15e91ae2a;p=thirdparty%2Fqemu.git Makefile: also remove .gcno files when cleaning Left over .gcno files from old builds can really confuse gcov and the user expects a clean slate after "make clean". Make clean mean clean. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20220204204335.1689602-4-alex.bennee@linaro.org> --- diff --git a/Makefile b/Makefile index db9a7886011..e5fd1ebdf61 100644 --- a/Makefile +++ b/Makefile @@ -206,7 +206,8 @@ recurse-clean: $(addsuffix /clean, $(ROM_DIRS)) clean: recurse-clean -$(quiet-@)test -f build.ninja && $(NINJA) $(NINJAFLAGS) -t clean || : -$(quiet-@)test -f build.ninja && $(NINJA) $(NINJAFLAGS) clean-ctlist || : - find . \( -name '*.so' -o -name '*.dll' -o -name '*.[oda]' \) -type f \ + find . \( -name '*.so' -o -name '*.dll' -o \ + -name '*.[oda]' -o -name '*.gcno' \) -type f \ ! -path ./roms/edk2/ArmPkg/Library/GccLto/liblto-aarch64.a \ ! -path ./roms/edk2/ArmPkg/Library/GccLto/liblto-arm.a \ -exec rm {} +