Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753549Ab2FVETv (ORCPT ); Fri, 22 Jun 2012 00:19:51 -0400 Received: from LGEMRELSE6Q.lge.com ([156.147.1.121]:59353 "EHLO LGEMRELSE6Q.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752380Ab2FVETu (ORCPT ); Fri, 22 Jun 2012 00:19:50 -0400 X-AuditID: 9c930179-b7befae000006417-33-4fe3f264ae69 From: Namhyung Kim To: Ingo Molnar 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 References: <1340128221-17348-1-git-send-email-acme@infradead.org> <20120620120141.GB1925@gmail.com> <1340201223.1520.5.camel@leonhard> <20120620144902.GB2007@gmail.com> Date: Fri, 22 Jun 2012 13:16:11 +0900 In-Reply-To: <20120620144902.GB2007@gmail.com> (Ingo Molnar's message of "Wed, 20 Jun 2012 16:49:02 +0200") Message-ID: <87lijgkmlw.fsf@sejong.aot.lge.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.97 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Brightmail-Tracker: AAAAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1077 Lines: 33 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 $(gui_deps): ks_version.h -- 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/