[Box Backup-dev] make clean

Chris Wilson boxbackup-dev at fluffy.co.uk
Fri Feb 3 09:27:57 GMT 2006


Hi Stefan,

> "make clean" from top-level only deletes packages and not
> object files... I find this a bit confusing sometimes (I am very
> easily confused). :-)

I agree that "make clean" should be fixed. I have a patch in the Boxi tree 
that does this; basically it does:

 	find . -name '*.o'   | xargs -r rm
 	find . -name '*.a'   | xargs -r rm

But now that I think about it, it would probably be better to do:

 	find release -type f | xargs -r rm
 	find debug   -type f | xargs -r rm

Or even to wipe out the release and debug trees, and recreate them.

However, if we did this, it would no longer be possible to use "make" to 
do an incremental rebuild of box, because "make" fails if the parcels 
already exist, and "make clean" is the only target that just removes them 
(and not the built object files). I think that "make all" should not die 
if the parcels already exist, but delete or overwrite them.

Cheers, Chris.
-- 
_ ___ __     _
  / __/ / ,__(_)_  | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer |
\ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |




More information about the Boxbackup-dev mailing list