perf tools: Fix build breakage

The patch ecafda6 introduced a problem where all object files would be
always rebuilt, fix it by using:

http://www.gnu.org/software/make/manual/html_node/Prerequisite-Types.html

Reported-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Bernd Petrovitsch <bernd@sysprog.at>
Signed-off-by: Kusanagi Kouichi <slash@ac.auone-net.jp>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by Kusanagi Kouichi and committed by Arnaldo Carvalho de Melo 39cfae64 03e22198

+1 -1
+1 -1
tools/perf/Makefile
··· 1017 1017 # we compile into subdirectories. if the target directory is not the source directory, they might not exists. So 1018 1018 # we depend the various files onto their directories. 1019 1019 DIRECTORY_DEPS = $(LIB_OBJS) $(BUILTIN_OBJS) $(OUTPUT)PERF-VERSION-FILE $(OUTPUT)common-cmds.h 1020 - $(DIRECTORY_DEPS): $(sort $(dir $(DIRECTORY_DEPS))) 1020 + $(DIRECTORY_DEPS): | $(sort $(dir $(DIRECTORY_DEPS))) 1021 1021 # In the second step, we make a rule to actually create these directories 1022 1022 $(sort $(dir $(DIRECTORY_DEPS))): 1023 1023 $(QUIET_MKDIR)$(MKDIR) -p $@ 2>/dev/null