libtool-patches
[Top][All Lists]
Advanced

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

clean-libs in builddir (was: SCO/bugfix patch 7 of 10: Improve SCO platf


From: Ralf Wildenhues
Subject: clean-libs in builddir (was: SCO/bugfix patch 7 of 10: Improve SCO platform support)
Date: Sun, 13 Nov 2005 20:19:24 +0100
User-agent: Mutt/1.5.9i

* 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

[Prev in Thread] Current Thread [Next in Thread]