Skip to contentSkip to conversation

perf tools: Fix up 'make clean' target

tip:perf/core tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Feb 2, 2011 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  568bb7b8e856b9efb98a3f63259c717adc1b96b8
Gitweb:     http://git.kernel.org/tip/568bb7b8e856b9efb98a3f63259c717adc1b96b8
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Tue, 1 Feb 2011 15:05:00 -0200
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Tue, 1 Feb 2011 15:05:00 -0200

perf tools: Fix up 'make clean' target

It wasn't using $(OUTPUT) to rm *.o and there were some funny looking automake files that never get created but were being deleted anyway.

Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Tom Zanussi <[email protected]>
LKML-Reference: <new-submission>

---
 tools/perf/Makefile |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
tools/perf/Makefile +1 -3
index d1984ee..85f6549 100644
@@ -1289,12 +1289,10 @@ distclean: clean
 #	$(RM) configure
 
 clean:
-	$(RM) *.o */*.o */*/*.o */*/*/*.o $(LIB_FILE)
+	$(RM) $(OUTPUT){*.o,*/*.o,*/*/*.o,*/*/*/*.o,$(LIB_FILE),perf-archive}
 	$(RM) $(ALL_PROGRAMS) $(BUILT_INS) perf$X
 	$(RM) $(TEST_PROGRAMS)
 	$(RM) *.spec *.pyc *.pyo */*.pyc */*.pyo $(OUTPUT)common-cmds.h TAGS tags cscope*
-	$(RM) -r autom4te.cache
-	$(RM) config.log config.mak.autogen config.mak.append config.status config.cache
 	$(RM) -r $(PERF_TARNAME) .doc-tmp-dir
 	$(RM) $(PERF_TARNAME).tar.gz perf-core_$(PERF_VERSION)-*.tar.gz
 	$(RM) $(htmldocs).tar.gz $(manpages).tar.gz