From c7caee6c4b05c733f21f5fb6c723371820204be1 Mon Sep 17 00:00:00 2001
From: Corey Farrell <git@cfware.com>
Date: Thu, 14 Jan 2016 15:36:10 -0500
Subject: [PATCH] Remove *.gcna / *.gcno files from added module sources.

Asterisk uses a Makefile macro to associate additional sources with a
module.  This macro is responsible for creating clean targets but
previously left behind *.gcna and *.gcno files.

ASTERISK-25683 #close
Reported by yaron nahum

Change-Id: Idc0823fe80a25c42cefae901fde875e9fc38d8ea
---
 Makefile.moddir_rules | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.moddir_rules b/Makefile.moddir_rules
index df715d9875..a92b0d8258 100644
--- a/Makefile.moddir_rules
+++ b/Makefile.moddir_rules
@@ -77,7 +77,7 @@ $$(subst $(3),$(5),$(2)): _ASTCFLAGS+=$$(call MOD_ASTCFLAGS,$(1))
 clean:: clean-$(1)$(3)
 
 clean-$(1)$(3):
-	rm -f $$(subst $(3),$(5),$(2)) $$(subst $(3),$(4),$(2))
+	rm -f $$(subst $(3),$(4),$(2)) $$(subst $(3),$(5),$(2)) $$(subst $(3),$(6),$(2)) $$(subst $(3),$(7),$(2))
 
 endef
 
-- 
GitLab