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
This commit is contained in:
Matt Jordan
2015-06-27 18:47:19 -05:00
parent 96bbcf495a
commit 9b74dcb687
6 changed files with 7 additions and 6 deletions

View File

@@ -118,6 +118,7 @@ clean::
rm -f *.so *.o *.oo *.eo *.i *.ii rm -f *.so *.o *.oo *.eo *.i *.ii
rm -f .*.d rm -f .*.d
rm -f *.s *.i rm -f *.s *.i
rm -f *.gcda *.gcno
rm -f modules.link rm -f modules.link
install:: all install:: all

View File

@@ -28,7 +28,7 @@ all: _all
include $(ASTTOPDIR)/Makefile.moddir_rules include $(ASTTOPDIR)/Makefile.moddir_rules
clean:: 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)) $(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) $(subst .c,.o,$(wildcard confbridge/*.c)): _ASTCFLAGS+=$(call MOD_ASTCFLAGS,app_confbridge)

View File

@@ -63,8 +63,8 @@ endif
clean:: clean::
$(MAKE) -C misdn clean $(MAKE) -C misdn clean
rm -f sip/*.o sip/*.i rm -f sip/*.o sip/*.i sip/*.gcda sip/*.gcno
rm -f h323/libchanh323.a h323/Makefile.ast h323/*.o h323/*.dep rm -f h323/libchanh323.a h323/Makefile.ast h323/*.o h323/*.dep h323/*.gcda h323/*.gcno
dist-clean:: dist-clean::
rm -f h323/Makefile rm -f h323/Makefile

View File

@@ -14,4 +14,4 @@ portinfo: portinfo.o
$(CC) -o $@ $^ -lisdnnet -lmISDN -lpthread $(CC) -o $@ $^ -lisdnnet -lmISDN -lpthread
clean: clean:
rm -rf *.a *.o *.so portinfo *.i rm -rf *.a *.o *.so portinfo *.i *.gcda *.gcno

View File

@@ -24,7 +24,7 @@ ifneq ($(findstring $(OSARCH), mingw32 cygwin ),)
endif endif
clean:: 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: dundi-parser.h
dundi-parser.o: _ASTCFLAGS+=-I. dundi-parser.o: _ASTCFLAGS+=-I.

View File

@@ -71,7 +71,7 @@ ael/pval.o: ael/pval.c
clean:: clean::
@if [ -f pjproject/build.mak ]; then $(MAKE) -C pjproject realclean; fi @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 dist-clean:: distclean
distclean:: distclean::