Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1286198

[PATCH v2 01/14] perf: Fix 'make clean'

From Josh Poimboeuf <jpoimboe@redhat.com>
Newsgroups linux.kernel
Subject [PATCH v2 01/14] perf: Fix 'make clean'
Date 2015-12-08 05:30 +0100
Message-ID <qDi4x-5SE-11@gated-at.bofh.it> (permalink)
References <qDi4x-5SE-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Add some missing files to the 'make clean' target.

Reported-by: Jiri Olsa <jolsa@redhat.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
---
 tools/perf/Makefile.perf | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf
index 929a32b..8b63dbd 100644
--- a/tools/perf/Makefile.perf
+++ b/tools/perf/Makefile.perf
@@ -584,13 +584,22 @@ config-clean:
 	$(call QUIET_CLEAN, config)
 	$(Q)$(MAKE) -C $(srctree)/tools/build/feature/ clean >/dev/null
 
-clean: $(LIBTRACEEVENT)-clean $(LIBAPI)-clean $(LIBBPF)-clean config-clean
+feature-clean:
+	$(call QUIET_CLEAN, feature)
+	$(Q)$(RM) -r $(OUTPUT)feature
+
+tests-clean:
+	$(call QUIET_CLEAN, tests)
+	$(Q)find $(OUTPUT)tests -name '*.o' -delete -o -name '\.*.cmd' -delete
+	$(Q)$(RM) $(OUTPUT)tests/llvm-src-{base,kbuild,prologue}.c
+
+clean: $(LIBTRACEEVENT)-clean $(LIBAPI)-clean $(LIBBPF)-clean config-clean feature-clean tests-clean
 	$(call QUIET_CLEAN, core-objs)  $(RM) $(LIB_FILE) $(OUTPUT)perf-archive $(OUTPUT)perf-with-kcore $(LANG_BINDINGS)
 	$(Q)find . -name '*.o' -delete -o -name '\.*.cmd' -delete -o -name '\.*.d' -delete
 	$(Q)$(RM) $(OUTPUT).config-detected
 	$(call QUIET_CLEAN, core-progs) $(RM) $(ALL_PROGRAMS) perf perf-read-vdso32 perf-read-vdsox32
 	$(call QUIET_CLEAN, core-gen)   $(RM)  *.spec *.pyc *.pyo */*.pyc */*.pyo $(OUTPUT)common-cmds.h TAGS tags cscope* $(OUTPUT)PERF-VERSION-FILE $(OUTPUT)FEATURE-DUMP $(OUTPUT)util/*-bison* $(OUTPUT)util/*-flex* \
-		$(OUTPUT)util/intel-pt-decoder/inat-tables.c
+		$(OUTPUT)util/intel-pt-decoder/inat-tables.c $(OUTPUT)fixdep
 	$(QUIET_SUBDIR0)Documentation $(QUIET_SUBDIR1) clean
 	$(python-clean)
 
-- 
2.4.3

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

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH v2 01/14] perf: Fix 'make clean' Josh Poimboeuf <jpoimboe@redhat.com> - 2015-12-08 05:30 +0100
  Re: [PATCH v2 01/14] perf: Fix 'make clean' Jiri Olsa <jolsa@redhat.com> - 2015-12-08 18:50 +0100
    Re: [PATCH v2 01/14] perf: Fix 'make clean' Josh Poimboeuf <jpoimboe@redhat.com> - 2015-12-08 19:50 +0100
    Re: [PATCH v2 01/14] perf: Fix 'make clean' Josh Poimboeuf <jpoimboe@redhat.com> - 2015-12-08 19:50 +0100
    Re: [PATCH v2 01/14] perf: Fix 'make clean' Jiri Olsa <jolsa@redhat.com> - 2015-12-08 19:50 +0100

csiph-web