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 a9f721303d
commit 49f81ddb85
6 changed files with 13 additions and 10 deletions

View File

@@ -76,9 +76,11 @@ endif
ael/pval.o: ael/pval.c
clean::
rm -f snmp/*.[oi] ael/*.[oi] ais/*.[oi] ari/*.[oi]
rm -f res_pjsip/*.[oi] stasis/*.[oi]
rm -f parking/*.o parking/*.i stasis_recording/*.[oi]
rm -f snmp/*.o snmp/*.i ael/*.o ael/*.i ais/*.o ais/*.i snmp/*.gcda snmp/*.gcno ael/*.gcda ael/*.gcno
rm -f res_pjsip/*.[oi] res_pjsip/*.gcda res_pjsip/*.gcno
rm -f stasis/*.[oi] stasis/*.gcda stasis/*.gcno
rm -f parking/*.[oi] parking/*.gcda parking/*.gcno
rm -f stasis_recording/*.[oi] stasis_recording/*.gcda stasis_recording/*.gcno
$(if $(filter res_parking,$(EMBEDDED_MODS)),modules.link,res_parking.so): $(subst .c,.o,$(wildcard parking/*.c))
$(subst .c,.o,$(wildcard parking/*.c)): _ASTCFLAGS+=$(call MOD_ASTCFLAGS,res_parking)