Messages in this thread | | | Date | Mon, 25 Jun 2012 10:22:25 +0200 | From | Ingo Molnar <> | Subject | Re: [GIT PULL 00/20] perf/core improvements |
| |
* Namhyung Kim <namhyung@kernel.org> 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
| |