[asterisk-commits] Makefile: Remove coverage files on 'make clean' (asterisk[master])
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sat Jul 4 12:04:59 CDT 2015
Joshua Colp 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 channels/Makefile
M channels/misdn/Makefile
3 files changed, 4 insertions(+), 4 deletions(-)
Approvals:
Anonymous Coward #1000019: Verified
Joshua Colp: Looks good to me, approved
diff --git a/Makefile.moddir_rules b/Makefile.moddir_rules
index e702282..df715d9 100644
--- a/Makefile.moddir_rules
+++ b/Makefile.moddir_rules
@@ -81,8 +81,8 @@
endef
-MOD_ADD_C=$(eval $(call MOD_ADD_SOURCE,$(1),$(2),.c,.i,.o))
-MOD_ADD_CC=$(eval $(call MOD_ADD_SOURCE,$(1),$(2),.cc,.ii,.oo))
+MOD_ADD_C=$(eval $(call MOD_ADD_SOURCE,$(1),$(2),.c,.i,.o,.gcda,.gcno))
+MOD_ADD_CC=$(eval $(call MOD_ADD_SOURCE,$(1),$(2),.cc,.ii,.oo,.gcda,.gcno))
$(addsuffix .oo,$(CC_MODS)) $(addsuffix .o,$(C_MODS)): \
_ASTCFLAGS+=$(call MOD_ASTCFLAGS,$*)
@@ -140,6 +140,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/channels/Makefile b/channels/Makefile
index 733ce41..44a0429 100644
--- a/channels/Makefile
+++ b/channels/Makefile
@@ -23,7 +23,6 @@
LIBS+= -lres_monitor.so
endif
-
$(call MOD_ADD_C,chan_iax2,$(wildcard iax2/*.c))
$(call MOD_ADD_C,chan_sip,$(wildcard sip/*.c))
$(call MOD_ADD_C,chan_pjsip,$(wildcard pjsip/*.c))
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
--
To view, visit https://gerrit.asterisk.org/778
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ib70b41eea2ee2908885bff02e80faf9f40c84602
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Matt Jordan <mjordan at digium.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Matt Jordan <mjordan at digium.com>
More information about the asterisk-commits
mailing list