mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +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:
@@ -81,8 +81,8 @@ clean-$(1)$(3):
|
||||
|
||||
endef
|
||||
|
||||
MOD_ADD_C=$(eval $(call MOD_ADD_SOURCE,$(1),$(2),.c,.i,.o))
|
||||
MOD_ADD_CC=$(eval $(call MOD_ADD_SOURCE,$(1),$(2),.cc,.ii,.oo))
|
||||
MOD_ADD_C=$(eval $(call MOD_ADD_SOURCE,$(1),$(2),.c,.i,.o,.gcda,.gcno))
|
||||
MOD_ADD_CC=$(eval $(call MOD_ADD_SOURCE,$(1),$(2),.cc,.ii,.oo,.gcda,.gcno))
|
||||
|
||||
$(addsuffix .oo,$(CC_MODS)) $(addsuffix .o,$(C_MODS)): \
|
||||
_ASTCFLAGS+=$(call MOD_ASTCFLAGS,$*)
|
||||
@@ -140,6 +140,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
|
||||
|
Reference in New Issue
Block a user