[PATCH]Perf: Fix Makefile to remove all "*.o" files while "make clean"

From: chenggang
Date: Thu Mar 14 2013 - 01:56:34 EST

From: chenggang <chenggang.qcg@xxxxxxxxxx>

While we run "make clean" in perf's directory, and run the command:
"fine ./ -name *.o"
we will get:
These ".o" files are not cleaned.

This patch fixed this problem.

Cc: David Ahern <dsahern@xxxxxxxxx>
Cc: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
Cc: Paul Mackerras <paulus@xxxxxxxxx>
Cc: Ingo Molnar <mingo@xxxxxxxxxx>
Cc: Arnaldo Carvalho de Melo <acme@xxxxxxxxxxxxxxxxxx>
Cc: Arjan van de Ven <arjan@xxxxxxxxxxxxxxx>
Cc: Namhyung Kim <namhyung@xxxxxxxxx>
Cc: Yanmin Zhang <yanmin.zhang@xxxxxxxxx>
Cc: Wu Fengguang <fengguang.wu@xxxxxxxxx>
Cc: Mike Galbraith <efault@xxxxxx>
Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Signed-off-by: Chenggang Qin <chenggang.qcg@xxxxxxxxxx>

tools/perf/Makefile | 10 ++++++++++
1 file changed, 10 insertions(+)

diff --git a/tools/perf/Makefile b/tools/perf/Makefile
index a2108ca..20ed83c 100644
--- a/tools/perf/Makefile
+++ b/tools/perf/Makefile
@@ -1173,6 +1173,16 @@ clean: $(LIBTRACEEVENT)-clean
$(RM) $(OUTPUT)util/*-bison*
$(RM) $(OUTPUT)util/*-flex*
+ $(RM) $(OUTPUT)util/*.o
+ $(RM) $(OUTPUT)util/scripting-engines/*.o
+ $(RM) $(OUTPUT)scripts/perl/Perf-Trace-Util/*.o
+ $(RM) $(OUTPUT)scripts/python/Perf-Trace-Util/*.o
+ $(RM) $(OUTPUT)ui/*.o
+ $(RM) $(OUTPUT)ui/browsers/*.o
+ $(RM) $(OUTPUT)ui/tui/*.o
+ $(RM) $(OUTPUT)ui/gtk/*.o
+ $(RM) $(OUTPUT)lib/*.o
+ $(RM) $(OUTPUT)arch/$(ARCH)/util/*.o

.PHONY: all install clean strip $(LIBTRACEEVENT)

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/