diff options
author | Jiri Olsa <jolsa@redhat.com> | 2013-11-26 07:54:12 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-11-27 14:47:14 -0500 |
commit | 26286141a43251bed548349efbf60b61f1c433e8 (patch) | |
tree | d4bb0a69fdcd1724fce98bf364e477dbf9a1237a /tools/perf | |
parent | 972ec653c489fd08ac2904caa98a6fa3f44dc303 (diff) |
perf tools: Fix tags/TAGS targets rebuilding
Once the tags/TAGS file is generated it's never rebuilt until it's
removed by hand.
The reason is that the Makefile does not treat tags/TAGS as targets but
as files and thus won't rebuilt them once they are in place.
Adding PHONY tags/TAGS targets into Makefile.
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/20131126125412.GJ1267@krava.brq.redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile index 4835618a5608..eefb9fb0c02f 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile | |||
@@ -60,8 +60,11 @@ endef | |||
60 | 60 | ||
61 | # | 61 | # |
62 | # Needed if no target specified: | 62 | # Needed if no target specified: |
63 | # (Except for tags and TAGS targets. The reason is that the | ||
64 | # Makefile does not treat tags/TAGS as targets but as files | ||
65 | # and thus won't rebuilt them once they are in place.) | ||
63 | # | 66 | # |
64 | all: | 67 | all tags TAGS: |
65 | $(print_msg) | 68 | $(print_msg) |
66 | $(make) | 69 | $(make) |
67 | 70 | ||
@@ -77,3 +80,5 @@ clean: | |||
77 | %: | 80 | %: |
78 | $(print_msg) | 81 | $(print_msg) |
79 | $(make) | 82 | $(make) |
83 | |||
84 | .PHONY: tags TAGS | ||