Skip to content
Snippets Groups Projects
Commit 9b74dcb6 authored by Matt Jordan's avatar Matt Jordan
Browse files

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
parent 96bbcf49
No related branches found
No related tags found
No related merge requests found
......@@ -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::
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment