[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 03/22] Makefile: also remove .gcno files when cleaning
From: |
Alex Bennée |
Subject: |
[PATCH v1 03/22] Makefile: also remove .gcno files when cleaning |
Date: |
Mon, 24 Jan 2022 20:15:49 +0000 |
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 <alex.bennee@linaro.org>
---
Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index db9a788601..65e0d2dd4e 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 {} +
--
2.30.2
- [PATCH v1 00/22] testing and plugin updates, Alex Bennée, 2022/01/24
- [PATCH v1 01/22] tests/Makefile.include: clean-up old code, Alex Bennée, 2022/01/24
- [PATCH v1 02/22] tests/qtest: enable more vhost-user tests by default, Alex Bennée, 2022/01/24
- [PATCH v1 07/22] tests/lcitool: Include local qemu.yml when refreshing cirrus-ci files, Alex Bennée, 2022/01/24
- [PATCH v1 05/22] MAINTAINERS: Cover lcitool submodule with build test / automation, Alex Bennée, 2022/01/24
- [PATCH v1 04/22] .gitignore: add .gcov pattern, Alex Bennée, 2022/01/24
- [PATCH v1 03/22] Makefile: also remove .gcno files when cleaning,
Alex Bennée <=
- [PATCH v1 06/22] gitmodules: Correct libvirt-ci submodule URL, Alex Bennée, 2022/01/24
- [PATCH v1 12/22] plugins: stxp test case from Aaron (!upstream), Alex Bennée, 2022/01/24
- [PATCH v1 08/22] drop libxml2 checks since libxml is not actually used (for parallels), Alex Bennée, 2022/01/24
- [PATCH v1 09/22] tests/lcitool: Refresh submodule and remove libxml2, Alex Bennée, 2022/01/24
- [PATCH v1 10/22] tests: Manually remove libxml2 on MSYS2 runners, Alex Bennée, 2022/01/24