aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2016-12-06 08:18:48 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-12-06 11:23:00 -0500
commit16e2ef4ed27f503afc2d69f0980f200b329cab83 (patch)
treeb6b637fa6fbc0ba0049368fbe73c64d2deb63016
parenta940cad331e79cc03d9ae74f56a2c7cb810bdce9 (diff)
perf tools: Move PERF-VERSION-FILE target into rules area
An upcoming fixdep fix needs all targets at the same area, so they'll fit under a signal condition block. Moving PERF-VERSION-FILE target into rules section. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: David Ahern <dsahern@gmail.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1481030331-31944-2-git-send-email-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--tools/perf/Makefile.perf8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf
index 10495c9dbe71..9e5a6e1a387d 100644
--- a/tools/perf/Makefile.perf
+++ b/tools/perf/Makefile.perf
@@ -128,10 +128,6 @@ endif
128# (this improves performance and avoids hard-to-debug behaviour); 128# (this improves performance and avoids hard-to-debug behaviour);
129MAKEFLAGS += -r 129MAKEFLAGS += -r
130 130
131$(OUTPUT)PERF-VERSION-FILE: ../../.git/HEAD
132 $(Q)$(SHELL_PATH) util/PERF-VERSION-GEN $(OUTPUT)
133 $(Q)touch $(OUTPUT)PERF-VERSION-FILE
134
135# Makefiles suck: This macro sets a default value of $(2) for the 131# Makefiles suck: This macro sets a default value of $(2) for the
136# variable named by $(1), unless the variable has been set by 132# variable named by $(1), unless the variable has been set by
137# environment or command line. This is necessary for CC and AR 133# environment or command line. This is necessary for CC and AR
@@ -505,6 +501,10 @@ $(OUTPUT)common-cmds.h: $(wildcard Documentation/perf-*.txt)
505$(SCRIPTS) : % : %.sh 501$(SCRIPTS) : % : %.sh
506 $(QUIET_GEN)$(INSTALL) '$@.sh' '$(OUTPUT)$@' 502 $(QUIET_GEN)$(INSTALL) '$@.sh' '$(OUTPUT)$@'
507 503
504$(OUTPUT)PERF-VERSION-FILE: ../../.git/HEAD
505 $(Q)$(SHELL_PATH) util/PERF-VERSION-GEN $(OUTPUT)
506 $(Q)touch $(OUTPUT)PERF-VERSION-FILE
507
508# These can record PERF_VERSION 508# These can record PERF_VERSION
509perf.spec $(SCRIPTS) \ 509perf.spec $(SCRIPTS) \
510 : $(OUTPUT)PERF-VERSION-FILE 510 : $(OUTPUT)PERF-VERSION-FILE