All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] perf tools: Fix tags target rebuilding
@ 2013-11-26 11:21 Jiri Olsa
  2013-11-26 11:31 ` Ingo Molnar
  0 siblings, 1 reply; 10+ messages in thread
From: Jiri Olsa @ 2013-11-26 11:21 UTC (permalink / raw)
  To: linux-kernel
  Cc: Jiri Olsa, Ingo Molnar, Frederic Weisbecker, Peter Zijlstra,
	Namhyung Kim, Mike Galbraith, Stephane Eranian, David Ahern,
	Adrian Hunter, Arnaldo Carvalho de Melo

Once the tags file is generated it's never rebuilt
until it's removed by hand.

The reason is that the Makefile does not treat tags
as a target but as a file to be rebuilt.

Adding tags as PHONY target into the Makefile.

Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Stephane Eranian <eranian@google.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
---
 tools/perf/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tools/perf/Makefile b/tools/perf/Makefile
index 4835618..95f5792 100644
--- a/tools/perf/Makefile
+++ b/tools/perf/Makefile
@@ -61,7 +61,7 @@ endef
 #
 # Needed if no target specified:
 #
-all:
+all tags:
 	$(print_msg)
 	$(make)
 
@@ -77,3 +77,5 @@ clean:
 %:
 	$(print_msg)
 	$(make)
+
+.PHONY: tags
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH] perf tools: Fix tags target rebuilding
  2013-11-26 11:21 [PATCH] perf tools: Fix tags target rebuilding Jiri Olsa
@ 2013-11-26 11:31 ` Ingo Molnar
  2013-11-26 11:50   ` Jiri Olsa
  0 siblings, 1 reply; 10+ messages in thread
From: Ingo Molnar @ 2013-11-26 11:31 UTC (permalink / raw)
  To: Jiri Olsa
  Cc: linux-kernel, Frederic Weisbecker, Peter Zijlstra, Namhyung Kim,
	Mike Galbraith, Stephane Eranian, David Ahern, Adrian Hunter,
	Arnaldo Carvalho de Melo


* Jiri Olsa <jolsa@redhat.com> wrote:

> Once the tags file is generated it's never rebuilt
> until it's removed by hand.
> 
> The reason is that the Makefile does not treat tags
> as a target but as a file to be rebuilt.
> 
> Adding tags as PHONY target into the Makefile.
> 
> Signed-off-by: Jiri Olsa <jolsa@redhat.com>
> Cc: Ingo Molnar <mingo@kernel.org>
> Cc: Frederic Weisbecker <fweisbec@gmail.com>
> Cc: Peter Zijlstra <peterz@infradead.org>
> Cc: Namhyung Kim <namhyung@kernel.org>
> Cc: Mike Galbraith <efault@gmx.de>
> Cc: Stephane Eranian <eranian@google.com>
> Cc: David Ahern <dsahern@gmail.com>
> Cc: Adrian Hunter <adrian.hunter@intel.com>
> Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
> ---
>  tools/perf/Makefile | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/tools/perf/Makefile b/tools/perf/Makefile
> index 4835618..95f5792 100644
> --- a/tools/perf/Makefile
> +++ b/tools/perf/Makefile
> @@ -61,7 +61,7 @@ endef
>  #
>  # Needed if no target specified:
>  #
> -all:
> +all tags:

Obviously the change invalidates the comment above.

>  	$(print_msg)
>  	$(make)
>  
> @@ -77,3 +77,5 @@ clean:
>  %:
>  	$(print_msg)
>  	$(make)
> +
> +.PHONY: tags

Note that there's also a TAGS file that uses etags - which probably 
needs similar treatment.

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?

Thanks,

	Ingo

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] perf tools: Fix tags target rebuilding
  2013-11-26 11:31 ` Ingo Molnar
@ 2013-11-26 11:50   ` Jiri Olsa
  2013-11-26 12:00     ` Ingo Molnar
  0 siblings, 1 reply; 10+ messages in thread
From: Jiri Olsa @ 2013-11-26 11:50 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: linux-kernel, Frederic Weisbecker, Peter Zijlstra, Namhyung Kim,
	Mike Galbraith, Stephane Eranian, David Ahern, Adrian Hunter,
	Arnaldo Carvalho de Melo

On Tue, Nov 26, 2013 at 12:31:08PM +0100, Ingo Molnar wrote:
> 
> * Jiri Olsa <jolsa@redhat.com> wrote:
> 
> > Once the tags file is generated it's never rebuilt
> > until it's removed by hand.
> > 
> > The reason is that the Makefile does not treat tags
> > as a target but as a file to be rebuilt.
> > 
> > Adding tags as PHONY target into the Makefile.
> > 
> > Signed-off-by: Jiri Olsa <jolsa@redhat.com>
> > Cc: Ingo Molnar <mingo@kernel.org>
> > Cc: Frederic Weisbecker <fweisbec@gmail.com>
> > Cc: Peter Zijlstra <peterz@infradead.org>
> > Cc: Namhyung Kim <namhyung@kernel.org>
> > Cc: Mike Galbraith <efault@gmx.de>
> > Cc: Stephane Eranian <eranian@google.com>
> > Cc: David Ahern <dsahern@gmail.com>
> > Cc: Adrian Hunter <adrian.hunter@intel.com>
> > Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
> > ---
> >  tools/perf/Makefile | 4 +++-
> >  1 file changed, 3 insertions(+), 1 deletion(-)
> > 
> > diff --git a/tools/perf/Makefile b/tools/perf/Makefile
> > index 4835618..95f5792 100644
> > --- a/tools/perf/Makefile
> > +++ b/tools/perf/Makefile
> > @@ -61,7 +61,7 @@ endef
> >  #
> >  # Needed if no target specified:
> >  #
> > -all:
> > +all tags:
> 
> Obviously the change invalidates the comment above.

ugh, haven't noticed that comment ;-)

> 
> >  	$(print_msg)
> >  	$(make)
> >  
> > @@ -77,3 +77,5 @@ clean:
> >  %:
> >  	$(print_msg)
> >  	$(make)
> > +
> > +.PHONY: tags
> 
> Note that there's also a TAGS file that uses etags - which probably 
> needs similar treatment.

yes

> 
> 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

jirka

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] perf tools: Fix tags target rebuilding
  2013-11-26 11:50   ` Jiri Olsa
@ 2013-11-26 12:00     ` Ingo Molnar
  2013-11-26 12:54       ` [PATCHv2] perf tools: Fix tags/TAGS targets rebuilding Jiri Olsa
  0 siblings, 1 reply; 10+ messages in thread
From: Ingo Molnar @ 2013-11-26 12:00 UTC (permalink / raw)
  To: Jiri Olsa
  Cc: linux-kernel, Frederic Weisbecker, Peter Zijlstra, Namhyung Kim,
	Mike Galbraith, Stephane Eranian, David Ahern, Adrian Hunter,
	Arnaldo Carvalho de Melo


* Jiri Olsa <jolsa@redhat.com> wrote:

> On Tue, Nov 26, 2013 at 12:31:08PM +0100, Ingo Molnar wrote:
> > 
> > * Jiri Olsa <jolsa@redhat.com> wrote:
> > 
> > > Once the tags file is generated it's never rebuilt
> > > until it's removed by hand.
> > > 
> > > The reason is that the Makefile does not treat tags
> > > as a target but as a file to be rebuilt.
> > > 
> > > Adding tags as PHONY target into the Makefile.
> > > 
> > > Signed-off-by: Jiri Olsa <jolsa@redhat.com>
> > > Cc: Ingo Molnar <mingo@kernel.org>
> > > Cc: Frederic Weisbecker <fweisbec@gmail.com>
> > > Cc: Peter Zijlstra <peterz@infradead.org>
> > > Cc: Namhyung Kim <namhyung@kernel.org>
> > > Cc: Mike Galbraith <efault@gmx.de>
> > > Cc: Stephane Eranian <eranian@google.com>
> > > Cc: David Ahern <dsahern@gmail.com>
> > > Cc: Adrian Hunter <adrian.hunter@intel.com>
> > > Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
> > > ---
> > >  tools/perf/Makefile | 4 +++-
> > >  1 file changed, 3 insertions(+), 1 deletion(-)
> > > 
> > > diff --git a/tools/perf/Makefile b/tools/perf/Makefile
> > > index 4835618..95f5792 100644
> > > --- a/tools/perf/Makefile
> > > +++ b/tools/perf/Makefile
> > > @@ -61,7 +61,7 @@ endef
> > >  #
> > >  # Needed if no target specified:
> > >  #
> > > -all:
> > > +all tags:
> > 
> > Obviously the change invalidates the comment above.
> 
> ugh, haven't noticed that comment ;-)
> 
> > 
> > >  	$(print_msg)
> > >  	$(make)
> > >  
> > > @@ -77,3 +77,5 @@ clean:
> > >  %:
> > >  	$(print_msg)
> > >  	$(make)
> > > +
> > > +.PHONY: tags
> > 
> > Note that there's also a TAGS file that uses etags - which probably 
> > needs similar treatment.
> 
> yes
> 
> > 
> > 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?

Thanks,

	Ingo

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCHv2] perf tools: Fix tags/TAGS targets rebuilding
  2013-11-26 12:00     ` Ingo Molnar
@ 2013-11-26 12:54       ` Jiri Olsa
  2013-11-26 16:13         ` Ingo Molnar
  2013-11-30 12:54         ` [tip:perf/core] " tip-bot for Jiri Olsa
  0 siblings, 2 replies; 10+ messages in thread
From: Jiri Olsa @ 2013-11-26 12:54 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: linux-kernel, Frederic Weisbecker, Peter Zijlstra, Namhyung Kim,
	Mike Galbraith, Stephane Eranian, David Ahern, Adrian Hunter,
	Arnaldo Carvalho de Melo

On Tue, Nov 26, 2013 at 01:00:55PM +0100, Ingo Molnar wrote:
> 
> * Jiri Olsa <jolsa@redhat.com> 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 <jolsa@redhat.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Stephane Eranian <eranian@google.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
---
 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.)
 #
-all:
+all tags TAGS:
	$(print_msg)
	$(make)
 
@@ -77,3 +80,5 @@ clean:
 %:
	$(print_msg)
	$(make)
+
+.PHONY: tags TAGS
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCHv2] perf tools: Fix tags/TAGS targets rebuilding
  2013-11-26 12:54       ` [PATCHv2] perf tools: Fix tags/TAGS targets rebuilding Jiri Olsa
@ 2013-11-26 16:13         ` Ingo Molnar
  2013-11-26 23:16           ` Jiri Olsa
  2013-11-30 12:54         ` [tip:perf/core] " tip-bot for Jiri Olsa
  1 sibling, 1 reply; 10+ messages in thread
From: Ingo Molnar @ 2013-11-26 16:13 UTC (permalink / raw)
  To: Jiri Olsa
  Cc: linux-kernel, Frederic Weisbecker, Peter Zijlstra, Namhyung Kim,
	Mike Galbraith, Stephane Eranian, David Ahern, Adrian Hunter,
	Arnaldo Carvalho de Melo


* Jiri Olsa <jolsa@redhat.com> wrote:

> On Tue, Nov 26, 2013 at 01:00:55PM +0100, Ingo Molnar wrote:
> > 
> > * Jiri Olsa <jolsa@redhat.com> 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 <jolsa@redhat.com>
> Cc: Ingo Molnar <mingo@kernel.org>
> Cc: Frederic Weisbecker <fweisbec@gmail.com>
> Cc: Peter Zijlstra <peterz@infradead.org>
> Cc: Namhyung Kim <namhyung@kernel.org>
> Cc: Mike Galbraith <efault@gmx.de>
> Cc: Stephane Eranian <eranian@google.com>
> Cc: David Ahern <dsahern@gmail.com>
> Cc: Adrian Hunter <adrian.hunter@intel.com>
> Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
> ---
>  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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCHv2] perf tools: Fix tags/TAGS targets rebuilding
  2013-11-26 16:13         ` Ingo Molnar
@ 2013-11-26 23:16           ` Jiri Olsa
  2013-11-27 11:31             ` Ingo Molnar
  2013-11-27 19:40             ` Arnaldo Carvalho de Melo
  0 siblings, 2 replies; 10+ messages in thread
From: Jiri Olsa @ 2013-11-26 23:16 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: linux-kernel, Frederic Weisbecker, Peter Zijlstra, Namhyung Kim,
	Mike Galbraith, Stephane Eranian, David Ahern, Adrian Hunter,
	Arnaldo Carvalho de Melo

On Tue, Nov 26, 2013 at 05:13:16PM +0100, Ingo Molnar wrote:

SNIP

> >  
> >  #
> >  # 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.)

my fingers vote against removing 'make tags' (and cscope)
dont care much about the rest though.. ;-)

jirka

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCHv2] perf tools: Fix tags/TAGS targets rebuilding
  2013-11-26 23:16           ` Jiri Olsa
@ 2013-11-27 11:31             ` Ingo Molnar
  2013-11-27 19:40             ` Arnaldo Carvalho de Melo
  1 sibling, 0 replies; 10+ messages in thread
From: Ingo Molnar @ 2013-11-27 11:31 UTC (permalink / raw)
  To: Jiri Olsa
  Cc: linux-kernel, Frederic Weisbecker, Peter Zijlstra, Namhyung Kim,
	Mike Galbraith, Stephane Eranian, David Ahern, Adrian Hunter,
	Arnaldo Carvalho de Melo


* Jiri Olsa <jolsa@redhat.com> wrote:

> On Tue, Nov 26, 2013 at 05:13:16PM +0100, Ingo Molnar wrote:
> 
> SNIP
> 
> > >  
> > >  #
> > >  # 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.)
> 
> my fingers vote against removing 'make tags' (and cscope)
> dont care much about the rest though.. ;-)

Okay, fair enough, and 'tags/TAGS' targets is also what the main 
kernel build system uses - so I concur. For your updated v2 patch:

  Acked-by: Ingo Molnar <mingo@kernel.org>

Thanks,

	Ingo

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCHv2] perf tools: Fix tags/TAGS targets rebuilding
  2013-11-26 23:16           ` Jiri Olsa
  2013-11-27 11:31             ` Ingo Molnar
@ 2013-11-27 19:40             ` Arnaldo Carvalho de Melo
  1 sibling, 0 replies; 10+ messages in thread
From: Arnaldo Carvalho de Melo @ 2013-11-27 19:40 UTC (permalink / raw)
  To: Jiri Olsa
  Cc: Ingo Molnar, linux-kernel, Frederic Weisbecker, Peter Zijlstra,
	Namhyung Kim, Mike Galbraith, Stephane Eranian, David Ahern,
	Adrian Hunter

Em Wed, Nov 27, 2013 at 12:16:50AM +0100, Jiri Olsa escreveu:
> On Tue, Nov 26, 2013 at 05:13:16PM +0100, Ingo Molnar wrote:
> 
> SNIP
> 
> > >  
> > >  #
> > >  # 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.)
> 
> my fingers vote against removing 'make tags' (and cscope)
> dont care much about the rest though.. ;-)

Ditto, please leave 'make tags', just like that kernel.

- Arnaldo

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [tip:perf/core] perf tools: Fix tags/TAGS targets rebuilding
  2013-11-26 12:54       ` [PATCHv2] perf tools: Fix tags/TAGS targets rebuilding Jiri Olsa
  2013-11-26 16:13         ` Ingo Molnar
@ 2013-11-30 12:54         ` tip-bot for Jiri Olsa
  1 sibling, 0 replies; 10+ messages in thread
From: tip-bot for Jiri Olsa @ 2013-11-30 12:54 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: acme, linux-kernel, eranian, hpa, mingo, peterz, efault,
	namhyung, jolsa, fweisbec, adrian.hunter, dsahern, tglx

Commit-ID:  26286141a43251bed548349efbf60b61f1c433e8
Gitweb:     http://git.kernel.org/tip/26286141a43251bed548349efbf60b61f1c433e8
Author:     Jiri Olsa <jolsa@redhat.com>
AuthorDate: Tue, 26 Nov 2013 13:54:12 +0100
Committer:  Arnaldo Carvalho de Melo <acme@redhat.com>
CommitDate: Wed, 27 Nov 2013 16:47:14 -0300

perf tools: Fix tags/TAGS targets rebuilding

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 <jolsa@redhat.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/20131126125412.GJ1267@krava.brq.redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
 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.)
 #
-all:
+all tags TAGS:
 	$(print_msg)
 	$(make)
 
@@ -77,3 +80,5 @@ clean:
 %:
 	$(print_msg)
 	$(make)
+
+.PHONY: tags TAGS

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-11-30 12:54 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-26 11:21 [PATCH] perf tools: Fix tags target rebuilding Jiri Olsa
2013-11-26 11:31 ` Ingo Molnar
2013-11-26 11:50   ` Jiri Olsa
2013-11-26 12:00     ` Ingo Molnar
2013-11-26 12:54       ` [PATCHv2] perf tools: Fix tags/TAGS targets rebuilding Jiri Olsa
2013-11-26 16:13         ` Ingo Molnar
2013-11-26 23:16           ` Jiri Olsa
2013-11-27 11:31             ` Ingo Molnar
2013-11-27 19:40             ` Arnaldo Carvalho de Melo
2013-11-30 12:54         ` [tip:perf/core] " tip-bot for Jiri Olsa

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.