qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v3 2/2] make: load only required dependency file


From: Victor Kaplansky
Subject: Re: [Qemu-devel] [PATCH v3 2/2] make: load only required dependency files.
Date: Mon, 10 Aug 2015 12:46:24 +0300

On Sun, Aug 09, 2015 at 12:54:37PM +0100, Peter Maydell wrote:
> On 9 August 2015 at 12:39, Michael S. Tsirkin <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]