From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:36535) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SgIpt-00028K-85 for qemu-devel@nongnu.org; Sun, 17 Jun 2012 13:00:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SgIpr-0004cz-G2 for qemu-devel@nongnu.org; Sun, 17 Jun 2012 13:00:24 -0400 Received: from cantor2.suse.de ([195.135.220.15]:35418 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SgIpr-0004ce-9h for qemu-devel@nongnu.org; Sun, 17 Jun 2012 13:00:23 -0400 Message-ID: <4FDE0D1E.7030308@suse.de> Date: Sun, 17 Jun 2012 19:00:14 +0200 From: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= MIME-Version: 1.0 References: <1339945072-10816-1-git-send-email-aliguori@us.ibm.com> <4FDE046E.3090407@suse.de> In-Reply-To: <4FDE046E.3090407@suse.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] make: automatically include dependencies in recursive subdir rules List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl , Anthony Liguori Cc: Paolo Bonzini , qemu-devel@nongnu.org Am 17.06.2012 18:23, schrieb Andreas F=C3=A4rber: > I've tested with just > +$(eval -include $(wildcard $1/*.d)) > and did > $ touch include/qemu/object.h >=20 > From what I see, using Anthony's original patch plus the modification > above (not the other ones), {i386,x86_64}-softmmu/hw/kvm/apic.o is stil= l > not getting rebuilt despite its included hw/apic_internal.h depending o= n > sysbus.h -> qdev.h -> qemu/object.h. >=20 > They're being added via obj-$(CONFIG_KVM) +=3D kvm/filename.o, not via = the > recursive directory rule, so are not caught by Anthony's rule. >=20 > Maybe fix by some explicit Makefile-specific rule such as this? >=20 > diff --git a/hw/i386/Makefile.objs b/hw/i386/Makefile.objs > index d43f1df..1e8423a 100644 > --- a/hw/i386/Makefile.objs > +++ b/hw/i386/Makefile.objs > @@ -11,3 +11,5 @@ obj-$(CONFIG_KVM) +=3D kvm/clock.o kvm/apic.o > kvm/i8259.o kvm/ioapic.o kvm/i8254.o > obj-$(CONFIG_SPICE) +=3D qxl.o qxl-logger.o qxl-render.o >=20 > obj-y :=3D $(addprefix ../,$(obj-y)) > + > +-include $(wildcard ../kvm/*.d) If using hw/kvm/*.d instead, it actually works. ;) Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=C3=B6rffer; HRB 16746 AG N=C3=BC= rnberg