Received: from eggs.gnu.org ([208.118.235.92]:33858) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbcO7-0006Hy-Dy for qemu-devel@nongnu.org; Mon, 04 Jun 2012 14:52:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SbcO4-0005LZ-QW for qemu-devel@nongnu.org; Mon, 04 Jun 2012 14:52:22 -0400 Received: from roura.ac.upc.es ([147.83.33.10]:48361) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbcO4-0005LB-Fe for qemu-devel@nongnu.org; Mon, 04 Jun 2012 14:52:20 -0400 From: =?utf-8?Q?Llu=C3=ADs_Vilanova?= References: <1338726358-30681-1-git-send-email-pbonzini@redhat.com> <4FCBE7D1.80907@suse.de> <4FCBEBE8.9060600@codemonkey.ws> <4FCC5775.6050704@redhat.com> Date: Mon, 04 Jun 2012 20:52:15 +0200 In-Reply-To: <4FCC5775.6050704@redhat.com> (Paolo Bonzini's message of "Mon, 04 Jun 2012 08:36:37 +0200") Message-ID: <87k3zmq59c.fsf@fimbulvetr.bsc.es> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 00/24] per-directory Makefile snippets, limit vpath abuse List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Andreas =?utf-8?Q?F=C3=A4rbe?= =?utf-8?Q?r?= , Anthony Liguori , qemu-devel@nongnu.org Paolo Bonzini writes: > Il 04/06/2012 00:57, Anthony Liguori ha scritto: >>> >>> As before, I dislike the use of the filename "Makefile" for files that >>> are not self-contained. If make is called from that deep directory, it >>> leads to undefined results. Either we must make sure through some clever >>> ifeq'ery and a local "all" target that such an attempt fails, or better >>> use a filename that is recognized by editors as Makefile syntax but not >>> used by make without explicit -f, e.g., foo.mak. >> >> Linux does this. I think it's expected behavior at this point. In the >> long term, we should either move to kconfig or autoconf so trying to act >> like one of the two seems like a good idea to me. > This is not really necessary; we won't really move to kbuild anytime. I > don't really like the magic Makefiles and did it only because Linux does > this. > Naming files Makefile.objs would make just as much sense. Naming them as *.mak makes some common editors interpret the file as a makefile (e.g., vim and emacs), while *.objs brings no meaning to these two. Lluis -- "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth