* Kean Johnston wrote on Thu, Nov 10, 2005 at 11:09:31PM CET:
> >I know.  You could even `find . -name \*.la | xargs rm' to avoid the
> >`make clean'.
> Hey what a great idea :)
> 
>   $ cat > ~/bin/quickclean
> #! /bin/sh
> find . -name \*.la | xargs rm -f
> ^D
>   $ chmod 755 ~/bin/quickclean
> 
> :)

I should add that this is not the Official Way[tm] of doing things.
And because it does not remove the actual libs, it might cause weird
failures on some systems (I think we've actually had a bug report that
involved such a situation.

I believe this instead should be pretty safe and quick (save for white
space in file names):

find . \( -name .libs -o -name _libs \) -prune -o -name \*.la -print |
  xargs ./libtool --mode=clean rm -f

Cheers,
Ralf


Reply via email to