Skip to contentSkip to conversation

Add .cache.mk and *.dwo into clean target and .gitignore

PATCH New Yixin Zhang 2 participants 2 messages May 22, 2018 – May 24, 2018

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Add .cache.mk and *.dwo into clean target and .gitignore

These files are generated during build, so and them into clean target and .gitignore

---
 .gitignore             | 2 ++
 include/mk/env_post.mk | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)
.gitignore +2 -0
index a7e65633f..b838efd59 100644
@@ -8,6 +8,8 @@ core
 .gdb_history
 .gdbinit
 lib*.a
+.cache.mk
+*.dwo
 
 /aclocal.m4
 autom4te.cache
include/mk/env_post.mk +2 -1
index 4c57fffe4..913bdf5d1 100644
@@ -54,7 +54,8 @@ MAKE_TARGETS			?= $(notdir $(patsubst %.c,%,$(wildcard $(abs_srcdir)/*.c)))
 
 MAKE_TARGETS			:= $(filter-out $(FILTER_OUT_MAKE_TARGETS),$(MAKE_TARGETS))
 
-CLEAN_TARGETS			+= $(MAKE_TARGETS) *.o *.pyc
+# with only *.dwo, .[0-9]+.dwo can not be cleaned
+CLEAN_TARGETS			+= $(MAKE_TARGETS) *.o *.pyc .cache.mk *.dwo .*.dwo
 
 # Majority of the files end up in testcases/bin...
 INSTALL_DIR			?= testcases/bin
Signature · 1 line
2.14.1
#1 lore raw

PATCH v2 1/1 Add .cache.mk and *.dwo into clean target and .gitignore

Hi Yixin,

Quoted 27 lines

These files are generated during build, so and them into clean target and .gitignore

---
 .gitignore             | 2 ++
 include/mk/env_post.mk | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)
.gitignore +2 -0
index a7e65633f..b838efd59 100644
@@ -8,6 +8,8 @@ core
 .gdb_history
 .gdbinit
 lib*.a
+.cache.mk
+*.dwo
 
 /aclocal.m4
 autom4te.cache
include/mk/env_post.mk +0 -0
index 4c57fffe4..913bdf5d1 100644

include/mk/env_post.mk MAKE_TARGETS ?= $(notdir $(patsubst %.c,%,$(wildcard $(abs_srcdir)/*.c))) · line 61

Quoted 9 lines
include/mk/env_post.mk +2 -1
@@ -54,7 +54,8 @@ MAKE_TARGETS			?= $(notdir $(patsubst %.c,%,$(wildcard $(abs_srcdir)/*.c)))
 
 MAKE_TARGETS			:= $(filter-out $(FILTER_OUT_MAKE_TARGETS),$(MAKE_TARGETS))
 
-CLEAN_TARGETS			+= $(MAKE_TARGETS) *.o *.pyc
+# with only *.dwo, .[0-9]+.dwo can not be cleaned
+CLEAN_TARGETS			+= $(MAKE_TARGETS) *.o *.pyc .cache.mk *.dwo .*.dwo
 
 # Majority of the files end up in testcases/bin...
 INSTALL_DIR			?= testcases/bin

Thanks, pushed!

Kind regards,
Petr