Skip to contentSkip to conversation

perf: clean target should do clean for lib/traceevent too

PATCH In review David Ahern 2 participants 3 messages Sep 6, 2012 – Sep 7, 2012 perf events

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf: clean target should do clean for lib/traceevent too

It's built as part of perf, so it should be cleaned too.

Cc Steven Rostedt <[email protected]>
Cc Namhyung Kim <[email protected]>
---
 tools/perf/Makefile |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
tools/perf/Makefile +4 -1
index 90d8e09..e7e62b2 100644
@@ -921,6 +921,9 @@ $(LIB_FILE): $(LIB_OBJS)
 $(LIBTRACEEVENT):
 	$(QUIET_SUBDIR0)$(TRACE_EVENT_DIR) $(QUIET_SUBDIR1) O=$(OUTPUT) libtraceevent.a
 
+$(LIBTRACEEVENT)-clean:
+	$(QUIET_SUBDIR0)$(TRACE_EVENT_DIR) $(QUIET_SUBDIR1) O=$(OUTPUT) clean
+
 help:
 	@echo 'Perf make targets:'
 	@echo '  doc		- make *all* documentation (see below)'
@@ -1060,7 +1063,7 @@ quick-install-html:
 
 ### Cleaning rules
 
-clean:
+clean: $(LIBTRACEEVENT)-clean
 	$(RM) $(LIB_OBJS) $(BUILTIN_OBJS) $(LIB_FILE) $(OUTPUT)perf-archive $(OUTPUT)perf.o $(LANG_BINDINGS)
 	$(RM) $(ALL_PROGRAMS) perf
 	$(RM) *.spec *.pyc *.pyo */*.pyc */*.pyo $(OUTPUT)common-cmds.h TAGS tags cscope*
Signature · 1 line
1.7.10.1
maintainer Tested-by on v1 1/1
#1 lore raw
Quoted 4 lines · David Ahern

It's built as part of perf, so it should be cleaned too.

Cc Steven Rostedt <[email protected]>

Thanks,
Namhyung

Quoted 27 lines
---
 tools/perf/Makefile |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
tools/perf/Makefile +4 -1
index 90d8e09..e7e62b2 100644
@@ -921,6 +921,9 @@ $(LIB_FILE): $(LIB_OBJS)
 $(LIBTRACEEVENT):
 	$(QUIET_SUBDIR0)$(TRACE_EVENT_DIR) $(QUIET_SUBDIR1) O=$(OUTPUT) libtraceevent.a
 
+$(LIBTRACEEVENT)-clean:
+	$(QUIET_SUBDIR0)$(TRACE_EVENT_DIR) $(QUIET_SUBDIR1) O=$(OUTPUT) clean
+
 help:
 	@echo 'Perf make targets:'
 	@echo '  doc		- make *all* documentation (see below)'
@@ -1060,7 +1063,7 @@ quick-install-html:
 
 ### Cleaning rules
 
-clean:
+clean: $(LIBTRACEEVENT)-clean
 	$(RM) $(LIB_OBJS) $(BUILTIN_OBJS) $(LIB_FILE) $(OUTPUT)perf-archive $(OUTPUT)perf.o $(LANG_BINDINGS)
 	$(RM) $(ALL_PROGRAMS) perf
 	$(RM) *.spec *.pyc *.pyo */*.pyc */*.pyo $(OUTPUT)common-cmds.h TAGS tags cscope*
#2 lore raw

[tip:perf/core] perf tools: Clean target should do clean for lib/ traceevent too

In reply to David Ahern
Commit-ID:  eea9b6842950924876a1a21ca197f189f8bb335a
Gitweb:     http://git.kernel.org/tip/eea9b6842950924876a1a21ca197f189f8bb335a
Author:     David Ahern <[email protected]>
AuthorDate: Wed, 5 Sep 2012 18:53:36 -0600
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Thu, 6 Sep 2012 10:47:29 -0300

perf tools: Clean target should do clean for lib/traceevent too

It's built as part of perf, so it should be cleaned too.

---
 tools/perf/Makefile |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
tools/perf/Makefile +4 -1
index 939cf6d..afd5075 100644
@@ -917,6 +917,9 @@ $(LIB_FILE): $(LIB_OBJS)
 $(LIBTRACEEVENT):
 	$(QUIET_SUBDIR0)$(TRACE_EVENT_DIR) $(QUIET_SUBDIR1) O=$(OUTPUT) libtraceevent.a
 
+$(LIBTRACEEVENT)-clean:
+	$(QUIET_SUBDIR0)$(TRACE_EVENT_DIR) $(QUIET_SUBDIR1) O=$(OUTPUT) clean
+
 help:
 	@echo 'Perf make targets:'
 	@echo '  doc		- make *all* documentation (see below)'
@@ -1056,7 +1059,7 @@ quick-install-html:
 
 ### Cleaning rules
 
-clean:
+clean: $(LIBTRACEEVENT)-clean
 	$(RM) $(LIB_OBJS) $(BUILTIN_OBJS) $(LIB_FILE) $(OUTPUT)perf-archive $(OUTPUT)perf.o $(LANG_BINDINGS)
 	$(RM) $(ALL_PROGRAMS) perf
 	$(RM) *.spec *.pyc *.pyo */*.pyc */*.pyo $(OUTPUT)common-cmds.h TAGS tags cscope*