mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
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:
@@ -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
|
||||
|
@@ -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)
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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.
|
||||
|
@@ -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::
|
||||
|
Reference in New Issue
Block a user