From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751904AbbFYH4f (ORCPT ); Thu, 25 Jun 2015 03:56:35 -0400 Received: from terminus.zytor.com ([198.137.202.10]:36346 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751812AbbFYH41 (ORCPT ); Thu, 25 Jun 2015 03:56:27 -0400 Date: Thu, 25 Jun 2015 00:56:09 -0700 From: tip-bot for Jiri Olsa Message-ID: Cc: acme@redhat.com, lukas@wunner.de, ak@linux.intel.com, hpa@zytor.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, namhyung@kernel.org, mingo@kernel.org, dsahern@gmail.com, eranian@google.com, a.p.zijlstra@chello.nl, adrian.hunter@intel.com, jolsa@kernel.org Reply-To: lukas@wunner.de, acme@redhat.com, namhyung@kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, hpa@zytor.com, ak@linux.intel.com, eranian@google.com, dsahern@gmail.com, mingo@kernel.org, jolsa@kernel.org, adrian.hunter@intel.com, a.p.zijlstra@chello.nl In-Reply-To: <1434977452-32520-4-git-send-email-jolsa@kernel.org> References: <1434977452-32520-4-git-send-email-jolsa@kernel.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf build: Fix single target build dependency check Git-Commit-ID: 8e55735150934f9ab2ce8a8005626e5693a6b61d X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 8e55735150934f9ab2ce8a8005626e5693a6b61d Gitweb: http://git.kernel.org/tip/8e55735150934f9ab2ce8a8005626e5693a6b61d Author: Jiri Olsa AuthorDate: Mon, 22 Jun 2015 14:50:52 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 22 Jun 2015 11:27:09 -0300 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 Cc: Adrian Hunter Cc: Andi Kleen Cc: David Ahern Cc: Lukas Wunner Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Stephane Eranian Link: http://lkml.kernel.org/r/1434977452-32520-4-git-send-email-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/perf/Makefile b/tools/perf/Makefile index d31a7bb..480546d 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile @@ -83,8 +83,8 @@ build-test: # # All other targets get passed through: # -%: +%: FORCE $(print_msg) $(make) -.PHONY: tags TAGS +.PHONY: tags TAGS FORCE Makefile