Re: [patch 10/15] fixup maintainerclean

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

 



On Tue, Jul 24, 2007 at 02:27:03PM -0700, Darren Hart wrote:
> On Tuesday 24 July 2007 02:25:27 Robert Schwebel wrote:
> > Add some more things which have to be cleaned on maintainer-clean; this
> > does also remove directories in the case that something went wrong
> > during development, leaving the tree in a non-clean state.
> >
> 
> Couple questions on this one - we do have to understand it to maintain it :-)
> 
> > Signed-off-by: Robert Schwebel <r.schwebel@xxxxxxxxxxxxxx>
> >
> > ---
> >  GNUmakefile.am |    7 ++++++-
> >  1 file changed, 6 insertions(+), 1 deletion(-)
> >
> > Index: GNUmakefile.am
> > ===================================================================
> > --- GNUmakefile.am.orig
> > +++ GNUmakefile.am
> > @@ -9,5 +9,10 @@ EXTRA_DIST = \
> >  	autogen.sh
> >
> >  MAINTAINERCLEANFILES = \
> > -        GNUmakefile.in
> > +	GNUmakefile.in \
> > +	$(DIST_ARCHIVES)
> 
> What are these?

"make dist" creates rt-tests-x.y.tar.{bz2,gz}. This entry removes them
if you do a "make maintainer-clean" (which you wanna do before checking
stuff into some rcs.

> > +
> > +maintainer-clean-local:
> > +	-chmod -R a+rw $(distdir)
> > +	-rm -fr $(distdir)
> 
> And this?

On "make distcheck" the autotools build the tarballs, extract them
again, into a temporary directory called like the package, make the
sources read only, create an out-of-tree directory, run configure there,
build and cleanup afterwards. If everything goes right, the temporary
directory is removed again. If something goes wrong, it remains there.
This entry instructs "make maintainer-clean" to make the directory
read/write again, then remove it.

This is a handy shortcut which makes sure that, after make
maintainer-clean, everything is back to the state where it can be
checked in.

Robert
-- 
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
     Hannoversche Str. 2, 31134 Hildesheim, Germany
   Phone: +49-5121-206917-0 |  Fax: +49-5121-206917-9

-
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux