Re: [GIT PULL 00/20] perf/core improvements

From: Ingo Molnar
Date: Mon Jun 25 2012 - 04:22:27 EST



* Namhyung Kim <namhyung@xxxxxxxxxx> wrote:

> Hi, Ingo
>
> On Wed, 20 Jun 2012 16:49:02 +0200, Ingo Molnar wrote:
> > Well, 'make' should notice that they are stale or should
> > regenerate them all the time.
> >
>
> Could you check the patch below does it?
>
>
> diff --git a/tools/lib/traceevent/Makefile b/tools/lib/traceevent/Makefile
> index 3d69aa9ff51e..42f018e15f36 100644
> --- a/tools/lib/traceevent/Makefile
> +++ b/tools/lib/traceevent/Makefile
> @@ -250,8 +250,12 @@ endef
> all_objs := $(sort $(ALL_OBJS))
> all_deps := $(all_objs:%.o=.%.d)
>
> +# let .d file also depends on the source and header files
> define check_deps
> - $(CC) -M $(CFLAGS) $< > $@;
> + @set -e; $(RM) $@; \
> + $(CC) -M $(CFLAGS) $< > $@.$$$$; \
> + sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
> + $(RM) $@.$$$$
> endef

Yeah, something like this should do the trick.

Thanks,

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/