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

Re: [Xen-devel] [PATCH v2] tools/python: Improve .gitgnore and clean Makefile rule



On Wed, 2014-07-09 at 17:07 +0100, Andrew Cooper wrote:
> On 09/07/14 16:47, Ian Campbell wrote:
> > On Mon, 2014-07-07 at 11:26 +0100, Andrew Cooper wrote:
> >> Ignore all intermediate python files, and use find in the clean rule as 
> >> there
> >> are no Makefiles in subdirectories to participate in a recursive clean.
> >>
> >> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
> >> CC: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
> >> CC: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
> >> diff --git a/.gitignore b/.gitignore
> >> index 562c262..cf9264f 100644
> >> --- a/.gitignore
> >> +++ b/.gitignore
> >> @@ -16,6 +16,7 @@
> >>  *.spit
> >>  *.gcno
> >>  *.gcda
> >> +*.py[ocd]
> > FWIW there are a bunch of explicit foo.pyc listed which could now be
> > removed I guess.
> 
> True.
> 
> >
> >> -  rm -f $(XENPATH)
> >> -  rm -rf build/ *.pyc *.pyo *.o *.a *~ xen/util/auxbin.pyc
> >> -  rm -f xen/lowlevel/xl/_pyxl_types.h
> >> -  rm -f xen/lowlevel/xl/_pyxl_types.c
> >> -  rm -f $(DEPS)
> >> +  find . \( -name "*.py[ocd]" -o -name "*~" -o -name "_*.[hc]" \) -delete
> > I've assumed the lack of *.a in here is deliberate but *.o?
> >
> > Ian.
> >
> 
> No object files or libraries  will be generated outside of build/

Ah, right.

> If we wish to cater to devs doing out-of-band builds in subdirectires
> then more than .o and .a should be included in this find.

no need: Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.