From: Matt Jordan Date: Sat, 27 Jun 2015 23:47:19 +0000 (-0500) Subject: Makefile: Remove coverage files on 'make clean' X-Git-Tag: 11.19.0-rc1~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b74dcb687f4e05da012d80ee54d04df82210520;p=thirdparty%2Fasterisk.git 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 --- diff --git a/Makefile.moddir_rules b/Makefile.moddir_rules index 2c922daf73..fe4d7c15bc 100644 --- a/Makefile.moddir_rules +++ b/Makefile.moddir_rules @@ -118,6 +118,7 @@ clean:: 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 ec17b11692..598bceaf1a 100644 --- a/apps/Makefile +++ b/apps/Makefile @@ -28,7 +28,7 @@ all: _all 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 12a09d75fc..eeed686cb8 100644 --- a/channels/Makefile +++ b/channels/Makefile @@ -63,8 +63,8 @@ endif 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 194bef5aea..96d5a2a3d2 100644 --- a/channels/misdn/Makefile +++ b/channels/misdn/Makefile @@ -14,4 +14,4 @@ portinfo: portinfo.o $(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 a328dc4619..d3b560ba49 100644 --- a/pbx/Makefile +++ b/pbx/Makefile @@ -24,7 +24,7 @@ ifneq ($(findstring $(OSARCH), mingw32 cygwin ),) 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 a219b7199e..c0b4821d80 100644 --- a/res/Makefile +++ b/res/Makefile @@ -71,7 +71,7 @@ ael/pval.o: ael/pval.c 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::