diff options
author | Jiri Olsa <jolsa@kernel.org> | 2016-04-25 16:17:18 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-04-25 16:59:36 -0400 |
commit | ab362f5a95ff72a895c446e9d5ef548cac2fea07 (patch) | |
tree | 2ccd4434c0d16bda0d64cdc3af68b0a107946d8d /tools/Makefile | |
parent | 6404436a63a463d03ef9b5d7cd5edd371e711a95 (diff) |
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>
Diffstat (limited to 'tools/Makefile')
-rw-r--r-- | tools/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/Makefile b/tools/Makefile index 60c7e6c8ff17..6bf68fe7dd29 100644 --- a/tools/Makefile +++ b/tools/Makefile | |||
@@ -137,7 +137,8 @@ libsubcmd_clean: | |||
137 | $(call descend,lib/subcmd,clean) | 137 | $(call descend,lib/subcmd,clean) |
138 | 138 | ||
139 | perf_clean: | 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 | selftests_clean: | 143 | selftests_clean: |
143 | $(call descend,testing/$(@:_clean=),clean) | 144 | $(call descend,testing/$(@:_clean=),clean) |