diff mbox series

PATCH] libtracefs: Remove dependency files on make clean

Message ID 20211217215841.51753c6a@rorschach.local.home (mailing list archive)
State Accepted
Commit 36a5df9299991c5972c6a2bfea22d00e61765d89
Headers show
Series PATCH] libtracefs: Remove dependency files on make clean | expand

Commit Message

Steven Rostedt Dec. 18, 2021, 2:58 a.m. UTC
From: Steven Rostedt <rostedt@goodmis.org>

Make clean left behind the dependency files .*.d on make clean, which can
cause havoc when trying to build after doing a checkout to another branch.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
---
 src/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/src/Makefile b/src/Makefile
index 985744ba1118..e8afab50bafb 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -58,7 +58,7 @@  $(OBJS): | $(bdir)
 $(DEPS): | $(bdir)
 
 clean:
-	$(Q)$(call do_clean,$(OBJS))
+	$(Q)$(call do_clean,$(OBJS) .*.d)
 
 dep_includes := $(wildcard $(DEPS))