Received: from eggs.gnu.org ([2001:4830:134:3::10]:52009) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOjf8-0006ib-9r for qemu-devel@nongnu.org; Mon, 10 Aug 2015 05:46:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZOjf5-0007WI-0D for qemu-devel@nongnu.org; Mon, 10 Aug 2015 05:46:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60908) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOjf4-0007Vz-RH for qemu-devel@nongnu.org; Mon, 10 Aug 2015 05:46:30 -0400 Date: Mon, 10 Aug 2015 12:46:24 +0300 From: Victor Kaplansky Message-ID: <20150810122811-mutt-send-email-victork@redhat.com> References: <1439113148-21937-1-git-send-email-victork@redhat.com> <1439113148-21937-3-git-send-email-victork@redhat.com> <20150809113923.GA3912@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH v3 2/2] make: load only required dependency files. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Eduardo Habkost , "Michael S. Tsirkin" , Stefan Weil , QEMU Developers , Paolo Bonzini , Alex Benn??e , Richard Henderson On Sun, Aug 09, 2015 at 12:54:37PM +0100, Peter Maydell wrote: > On 9 August 2015 at 12:39, Michael S. Tsirkin wrote: > > On Sun, Aug 09, 2015 at 12:39:59PM +0300, Victor Kaplansky wrote: > >> - $(eval -include $(addsuffix *.d, $(sort $(dir $($v))))) > >> + $(eval -include $(patsubst %.o,%.d,$(patsubst %.mo,%.d,$($v)))) > >> $(eval $v := $(filter-out %/,$($v)))) > >> endef > > > > Please add space after each comma. > > (I thought we discussed this in v1 review?) > > We don't seem to be completely consistent in our makefile > style, but I would say that the majority of it is written > in the same style used in the GNU Make docs, with no spaces > after commas. Looking into qemu sources I see that most patsubst patterns are written without spaces after first comma. About the same situation is in linux kernel sources. So, as for now, the style recommendation probably would be not to use spaces, but spaces after comma are acceptable. If we want to change this style recommendation, we can create another cosmetic patch addressing the change in style. -- Victor