Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753547Ab2FYIWd (ORCPT ); Mon, 25 Jun 2012 04:22:33 -0400 Received: from mail-bk0-f46.google.com ([209.85.214.46]:51728 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752137Ab2FYIWb (ORCPT ); Mon, 25 Jun 2012 04:22:31 -0400 Date: Mon, 25 Jun 2012 10:22:25 +0200 From: Ingo Molnar To: Namhyung Kim Cc: Arnaldo Carvalho de Melo , linux-kernel@vger.kernel.org, Andi Kleen , Arun Sharma , Benjamin Redelings , Corey Ashford , Cyrill Gorcunov , David Ahern , "Frank Ch. Eigler" , Frederic Weisbecker , Ingo Molnar , Jiri Olsa , Masami Hiramatsu , Mike Galbraith , Namhyung Kim , Paul Mackerras , Pekka Enberg , Peter Zijlstra , Robert Richter , Shan Wei , Stephane Eranian , Tom Zanussi Subject: Re: [GIT PULL 00/20] perf/core improvements Message-ID: <20120625082225.GB24512@gmail.com> References: <1340128221-17348-1-git-send-email-acme@infradead.org> <20120620120141.GB1925@gmail.com> <1340201223.1520.5.camel@leonhard> <20120620144902.GB2007@gmail.com> <87lijgkmlw.fsf@sejong.aot.lge.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87lijgkmlw.fsf@sejong.aot.lge.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 Content-Length: 1210 Lines: 40 * Namhyung Kim 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/