[asterisk-commits] Makefile: Remove coverage files on 'make clean' (asterisk[11])

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jun 29 14:52:42 CDT 2015


Mark Michelson has submitted this change and it was merged.

Change subject: Makefile: Remove coverage files on 'make clean'
......................................................................


Makefile: Remove coverage files on 'make clean'

This patch updates a variety of Makefiles in Asterisk's build system to
remove .gcda and .gcno files when 'make clean' is executed. These files
are generated when '--enable-coverage' is passed to the Asterisk
configure script.

Change-Id: Ib70b41eea2ee2908885bff02e80faf9f40c84602
---
M Makefile.moddir_rules
M apps/Makefile
M channels/Makefile
M channels/misdn/Makefile
M pbx/Makefile
M res/Makefile
6 files changed, 7 insertions(+), 6 deletions(-)

Approvals:
  Mark Michelson: Looks good to me, approved
  Anonymous Coward #1000019: Verified
  Joshua Colp: Looks good to me, but someone else must approve



diff --git a/Makefile.moddir_rules b/Makefile.moddir_rules
index 2c922da..fe4d7c1 100644
--- a/Makefile.moddir_rules
+++ b/Makefile.moddir_rules
@@ -118,6 +118,7 @@
 	rm -f *.so *.o *.oo *.eo *.i *.ii
 	rm -f .*.d
 	rm -f *.s *.i
+	rm -f *.gcda *.gcno
 	rm -f modules.link
 
 install:: all
diff --git a/apps/Makefile b/apps/Makefile
index ec17b11..598bcea 100644
--- a/apps/Makefile
+++ b/apps/Makefile
@@ -28,7 +28,7 @@
 include $(ASTTOPDIR)/Makefile.moddir_rules
 
 clean::
-	rm -f confbridge/*.o confbridge/*.i
+	rm -f confbridge/*.o confbridge/*.i confbridge/*.gcda confbridge/*.gcno
 
 $(if $(filter app_confbridge,$(EMBEDDED_MODS)),modules.link,app_confbridge.so): $(subst .c,.o,$(wildcard confbridge/*.c))
 $(subst .c,.o,$(wildcard confbridge/*.c)): _ASTCFLAGS+=$(call MOD_ASTCFLAGS,app_confbridge)
diff --git a/channels/Makefile b/channels/Makefile
index 12a09d7..eeed686 100644
--- a/channels/Makefile
+++ b/channels/Makefile
@@ -63,8 +63,8 @@
 
 clean::
 	$(MAKE) -C misdn clean
-	rm -f sip/*.o sip/*.i
-	rm -f h323/libchanh323.a h323/Makefile.ast h323/*.o h323/*.dep
+	rm -f sip/*.o sip/*.i sip/*.gcda sip/*.gcno
+	rm -f h323/libchanh323.a h323/Makefile.ast h323/*.o h323/*.dep h323/*.gcda h323/*.gcno
 
 dist-clean::
 	rm -f h323/Makefile
diff --git a/channels/misdn/Makefile b/channels/misdn/Makefile
index 194bef5..96d5a2a 100644
--- a/channels/misdn/Makefile
+++ b/channels/misdn/Makefile
@@ -14,4 +14,4 @@
 	$(CC) -o $@ $^ -lisdnnet -lmISDN -lpthread
 
 clean:
-	rm -rf *.a *.o *.so portinfo *.i
+	rm -rf *.a *.o *.so portinfo *.i *.gcda *.gcno
diff --git a/pbx/Makefile b/pbx/Makefile
index a328dc4..d3b560b 100644
--- a/pbx/Makefile
+++ b/pbx/Makefile
@@ -24,7 +24,7 @@
 endif
 
 clean::
-	rm -f ael/*.o ael/*.i
+	rm -f ael/*.o ael/*.i ael/*.gcda ael/*.gcno
 
 dundi-parser.o: dundi-parser.h
 dundi-parser.o: _ASTCFLAGS+=-I.
diff --git a/res/Makefile b/res/Makefile
index a219b71..c0b4821 100644
--- a/res/Makefile
+++ b/res/Makefile
@@ -71,7 +71,7 @@
 
 clean::
 	@if [ -f pjproject/build.mak ]; then $(MAKE) -C pjproject realclean; fi
-	rm -f snmp/*.o snmp/*.i ael/*.o ael/*.i ais/*.o ais/*.i
+	rm -f snmp/*.o snmp/*.i ael/*.o ael/*.i ais/*.o ais/*.i snmp/*.gcda snmp/*.gcno ael/*.gcda ael/*.gcno
 
 dist-clean:: distclean
 distclean::

-- 
To view, visit https://gerrit.asterisk.org/743
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib70b41eea2ee2908885bff02e80faf9f40c84602
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 11
Gerrit-Owner: Matt Jordan <mjordan at digium.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Mark Michelson <mmichelson at digium.com>
Gerrit-Reviewer: Matt Jordan <mjordan at digium.com>



More information about the asterisk-commits mailing list