Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools build: Fix perf_clean target

Fix perf_clean target to follow the same logic as perf target.

Fixes the following make invokation:

$ cd <kernelsrc> && make tools/perf_clean

Reported-by: TJ <linux@iam.tj>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=116411
Link: http://lkml.kernel.org/r/1461615438-27894-2-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Jiri Olsa and committed by
Arnaldo Carvalho de Melo
ab362f5a 6404436a

+2 -1
+2 -1
tools/Makefile
··· 137 137 $(call descend,lib/subcmd,clean) 138 138 139 139 perf_clean: 140 - $(call descend,$(@:_clean=),clean) 140 + $(Q)mkdir -p $(PERF_O) . 141 + $(Q)$(MAKE) --no-print-directory -C perf O=$(PERF_O) subdir= clean 141 142 142 143 selftests_clean: 143 144 $(call descend,testing/$(@:_clean=),clean)