From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757577Ab3KZQNY (ORCPT ); Tue, 26 Nov 2013 11:13:24 -0500 Received: from mail-bk0-f42.google.com ([209.85.214.42]:65182 "EHLO mail-bk0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757204Ab3KZQNU (ORCPT ); Tue, 26 Nov 2013 11:13:20 -0500 Date: Tue, 26 Nov 2013 17:13:16 +0100 From: Ingo Molnar To: Jiri Olsa Cc: linux-kernel@vger.kernel.org, Frederic Weisbecker , Peter Zijlstra , Namhyung Kim , Mike Galbraith , Stephane Eranian , David Ahern , Adrian Hunter , Arnaldo Carvalho de Melo Subject: Re: [PATCHv2] perf tools: Fix tags/TAGS targets rebuilding Message-ID: <20131126161316.GA7775@gmail.com> References: <1385464890-19876-1-git-send-email-jolsa@redhat.com> <20131126113108.GE2410@gmail.com> <20131126115043.GG1267@krava.brq.redhat.com> <20131126120055.GA6103@gmail.com> <20131126125412.GJ1267@krava.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131126125412.GJ1267@krava.brq.redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Jiri Olsa wrote: > On Tue, Nov 26, 2013 at 01:00:55PM +0100, Ingo Molnar wrote: > > > > * Jiri Olsa wrote: > > > > > On Tue, Nov 26, 2013 at 12:31:08PM +0100, Ingo Molnar wrote: > > SNIP > > > > > > > > > Also note that we have duplicate code for this in Makefile.perf > > > > already. Would it be possible to pass through this there and keep the > > > > main Makefile is just a thin, minimal wrapper that adds default > > > > parallelism, etc? > > > > > > well, thats what I actually tried to do.. pass the > > > processing to the Makefile.perf otherwise it stops > > > in Makefile > > > > > > I guess you want some generic way of doing that > > > > If it's just these two phony targets that need to be in the main > > makefile then I guess your approach is the simplest one and we should > > do it like that instead of complicating the interface. If it gets > > messier in the future we can reconsider? > > > > sounds good, pelase check v2 > > thanks, > jirka > > > --- > Once the tags/TAGS file is generated it's never rebuilt > until it's removed by hand. > > The reason is that the Makefile does not treat tags/TAGS > as targets but as files and thus won't rebuilt them > once they are in place. > > Adding PHONY tags/TAGS targets into Makefile. > > Signed-off-by: Jiri Olsa > Cc: Ingo Molnar > Cc: Frederic Weisbecker > Cc: Peter Zijlstra > Cc: Namhyung Kim > Cc: Mike Galbraith > Cc: Stephane Eranian > Cc: David Ahern > Cc: Adrian Hunter > Cc: Arnaldo Carvalho de Melo > --- > tools/perf/Makefile | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/tools/perf/Makefile b/tools/perf/Makefile > index 4835618..eefb9fb 100644 > --- a/tools/perf/Makefile > +++ b/tools/perf/Makefile > @@ -60,8 +60,11 @@ endef > > # > # Needed if no target specified: > +# (Except for tags and TAGS targets. The reason is that the > +# Makefile does not treat tags/TAGS as targets but as files > +# and thus won't rebuilt them once they are in place.) s/rebuilt/rebuild Btw., could we perhaps change the targets to 'ctags' and 'etags' instead? (That will make it natural to add 'gtags' in the future, should anyone want that.) Thanks, Ingo