From: "Jan Beulich" Subject: [PATCH] x86-64 don't generate dependency files when building compat headers Date: Tue, 27 Jan 2009 11:20:50 +0000 Message-ID: <497EFC22.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org The generated dependency files weren't correct (as their names get derived only from the base name of the target file, and there are public headers with the same base name in different directories), not needed (as the makefile already listed all necessary dependencies explicitly), and resulted in the first re-build in an already built tree to be an almost full re-build since the *.c files explicitly mentioned in the .*.d result in make not considering them as intermediate anymore, thus triggering re-generation of the headers, and hence re-building of almost the entire tree. Signed-off-by: Jan Beulich --- 2009-01-27.orig/xen/include/Makefile 2008-07-18 16:19:34.0000000= 00 +0200 +++ 2009-01-27/xen/include/Makefile 2009-01-27 10:42:37.000000000 = +0100 @@ -51,7 +51,7 @@ compat/%.h: compat/%.i Makefile mv -f $@.new $@ =20 compat/%.i: compat/%.c Makefile - $(CPP) $(CFLAGS) $(cppflags-y) -o $@ $< + $(CPP) $(filter-out -M% .$(@F).d,$(CFLAGS)) $(cppflags-y) -o $@ $< =20 compat/%.c: public/%.h xlat.lst Makefile mkdir -p $(@D)