[PATCH] Tidy up some missing loose ends re: cleaning.
Tito
farmatito at tiscali.it
Fri Jul 18 12:15:19 UTC 2008
On Friday 18 July 2008 12:02:10 Robert P. J. Day wrote:
> On Fri, 18 Jul 2008, walter harms wrote:
>
> > there is something called MRPROPER_FILES. maybe a better place ?
> >
> > more thinking about that there is a CLEAN_DIR and CLEAN_FILE why is there
> > a find statement ? what is additonal to find ?
> >
> > re,
> > wh
> >
> >
> > Robert P. J. Day wrote:
> > > Add some extra files to remove for "make distclean", and add an entry
> > > for mrproper to "make help".
> > >
> > > Signed-off-by: Robert P. J. Day <rpjday at crashcourse.ca>
> > >
> > > ---
> > >
> > > Index: svn/Makefile
> > > ===================================================================
> > > --- svn/Makefile (revision 22872)
> > > +++ svn/Makefile (working copy)
> > > @@ -983,11 +983,13 @@
> > > PHONY += distclean
> > >
> > > distclean: mrproper
> > > + @rm -rf _install
> > > @find $(srctree) $(RCS_FIND_IGNORE) \
> > > \( -name '*.orig' -o -name '*.rej' -o -name '*~' \
> > > -o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \
> > > -o -name '.*.rej' -o -name '*.tmp' -o -size 0 \
> > > - -o -name '*%' -o -name '.*.cmd' -o -name 'core' \) \
> > > + -o -name '*%' -o -name '.*.cmd' -o -name 'core' \
> > > + -o -name 'busybox.links' \) \
> > > -type f -print | xargs rm -f
> > >
> > >
> > > Index: svn/Makefile.help
> > > ===================================================================
> > > --- svn/Makefile.help (revision 22872)
> > > +++ svn/Makefile.help (working copy)
> > > @@ -5,6 +5,7 @@
> > > help:
> > > @echo 'Cleaning:'
> > > @echo ' clean - delete temporary files created by build'
> > > + @echo ' mrproper - delete current config, and all generated files'
> > > @echo ' distclean - delete all non-source files (including .config)'
> > > @echo
> > > @echo 'Build:'
> > >
> > >
>
> (can we please not top post?)
>
> yes, there exists CLEAN_DIRS and CLEAN_FILES and MRPROPER_DIRS and
> MRPROPER_FILES, but there is no DISTCLEAN_DIRS or DISTCLEAN_FILES, so
> you can't really say that there is a hard and fast standard that
> should apply here. also, it's not clear whether those additional
> objects i listed should be cleaned as part of clean, or mrproper, or
> distclean. i'm open to suggestions.
>
> also, you still need to do a recursive search with "find" to catch
> all the temporary files that are created during a build. if anyone
> wants to restructure the cleaning, feel free. my only point is that
> there is a small list of things that are currently not being
> processed which should be cleaned *somewhere*:
>
> _install/
> 0_lib/
> busybox.links
> busybox_old (and, yes, this should be cleaned)
Hi,
please don't remove busybox_old with make clean
as it is used for bloat-checks like:
1) compile with your config
2) mv busybox_unstripped to busybox_old
3) change stuff and recompile
4) run scripts\bloat-o-meter busybox_old busybox_unstripped
and so on.
Sometimes during this process you need to do make clean
to be sure that everything is recompiled correctly and
if busybox_old is removed you loose the possibility
to run bloat-o-meter as you need to revert your changes
to get a new busybox_old or download the busybox source
of that particular revision you are working on.
Ciao,
Tito
>
> i'm not really concerned about where stuff gets cleaned, as long as
> "make distclean" removes *everything* that is not part of the original
> source tree. no exceptions. and that includes busybox_old.
>
> rday
>
> p.s. here's a thought -- i'll post a new patch in which all four of
> those objects above are added to either MRPROPER_DIRS or
> MRPROPER_FILES, and leave the distclean target the way it is. i think
> that's the cleanest solution for now. patch coming in a few minutes.
>
> --
>
>
> ========================================================================
> Robert P. J. Day
> Linux Consulting, Training and Annoying Kernel Pedantry:
> Have classroom, will lecture.
>
> http://crashcourse.ca Waterloo, Ontario, CANADA
> ========================================================================
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://busybox.net/cgi-bin/mailman/listinfo/busybox
>
More information about the busybox
mailing list