perf tools: Fix redirection printouts
authorIngo Molnar <[email protected]>
Thu, 10 Oct 2013 05:42:56 +0000 (07:42 +0200)
committerArnaldo Carvalho de Melo <[email protected]>
Fri, 11 Oct 2013 15:18:04 +0000 (12:18 -0300)
Fix the duplicate util/util printout Arnaldo reported:

       $ make V=1 O=/tmp/build/perf -C tools/perf/ util/srcline.o
   ...
       # Redirected target util/srcline.o =>     /tmp/build/perf/util/util/srcline.o

Reported-by: Arnaldo Carvalho de Melo <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/Makefile.perf

index 2badb08a0037e3ca81624a4a277fd0b0adbe0054..8bc6d0c4e776e08c7b36082d61e88d4f1b3e7d29 100644 (file)
@@ -600,11 +600,11 @@ ifneq ($(OUTPUT),)
 %.o: $(OUTPUT)%.o
        @echo "    # Redirected target $@ => $(OUTPUT)$@"
 util/%.o: $(OUTPUT)util/%.o
-       @echo "    # Redirected target $@ => $(OUTPUT)util/$@"
+       @echo "    # Redirected target $@ => $(OUTPUT)$@"
 bench/%.o: $(OUTPUT)bench/%.o
-       @echo "    # Redirected target $@ => $(OUTPUT)bench/$@"
+       @echo "    # Redirected target $@ => $(OUTPUT)$@"
 tests/%.o: $(OUTPUT)tests/%.o
-       @echo "    # Redirected target $@ => $(OUTPUT)tests/$@"
+       @echo "    # Redirected target $@ => $(OUTPUT)$@"
 endif
 
 # These two need to be here so that when O= is not used they take precedence