aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2015-06-22 08:50:52 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-06-22 10:27:09 -0400
commit8e55735150934f9ab2ce8a8005626e5693a6b61d (patch)
treeef90e4fe04d2441dfbfb0187fdc4a824caee7a8e
parenteb30d2c5077b30f9f8e00eb2e5fadba18b148538 (diff)
perf build: Fix single target build dependency check
Currently if we build a single target like: $ touch util/map.c && make util/map.o It will not rebuild util/map.o if it already exists and util/map.c is modified. The reason is that the top-level 'Makefile' processes util/map.o as an implicit rule and if util/map.o exists make considers the 'util/map.o' target as done and will not nest into Makefile.perf. Adding FORCE for '%', because that's what we want to nest into Makefile.perf for any target. Adding Makefile into phony targets, because make tries to rebuild it and it's also resolved as '%' target. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Lukas Wunner <lukas@wunner.de> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/r/1434977452-32520-4-git-send-email-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--tools/perf/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile
index d31a7bbd7cee..480546d5f13b 100644
--- a/tools/perf/Makefile
+++ b/tools/perf/Makefile
@@ -83,8 +83,8 @@ build-test:
83# 83#
84# All other targets get passed through: 84# All other targets get passed through:
85# 85#
86%: 86%: FORCE
87 $(print_msg) 87 $(print_msg)
88 $(make) 88 $(make)
89 89
90.PHONY: tags TAGS 90.PHONY: tags TAGS FORCE Makefile