[1/2] nmk: clean gcov files, too

Submitted by Kir Kolyshkin on Feb. 8, 2017, 5:06 a.m.

Details

Message ID 20170208050656.27571-2-kir@openvz.org
State New
Series "Add gcov files to 'make clean'"
Headers show

Commit Message

Kir Kolyshkin Feb. 8, 2017, 5:06 a.m.
When criu is compiled with GCOV=1, .gc* files created are never
cleaned. While 'git clean -dxf' does the job and is popular
among the criu devs, it still feels good to have good ol'
make clean doing the right thing.

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
---
 scripts/nmk/scripts/utils.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/scripts/nmk/scripts/utils.mk b/scripts/nmk/scripts/utils.mk
index 3a8ad62..bf84141 100644
--- a/scripts/nmk/scripts/utils.mk
+++ b/scripts/nmk/scripts/utils.mk
@@ -19,7 +19,7 @@  uniq = $(strip $(if $1,$(firstword $1) $(call uniq,$(filter-out $(firstword $1),
 objectify = $(foreach o,$(sort $(call uniq,$(1))),$(if $(filter /% ./% ../%,$(o)),$(o),$(obj)/$(o)))
 
 # To cleanup entries.
-cleanify = $(foreach o,$(sort $(call uniq,$(1))),$(o) $(o:.o=.d) $(o:.o=.i) $(o:.o=.s))
+cleanify = $(foreach o,$(sort $(call uniq,$(1))),$(o) $(o:.o=.d) $(o:.o=.i) $(o:.o=.s) $(o:.o=.gcda) $(o:.o=.gcno))
 
 #
 # Footer.