Is there any particular reason why --mode=clean does not remove the .libs directory? How about something like this: diff -c -r1.200.2.44 ltmain.in *** ltmain.in 2001/01/24 20:08:34 1.200.2.44 --- ltmain.in 2001/01/29 00:11:19 *************** *** 4718,4723 **** --- 4718,4725 ---- exit 1 fi + cleandirs= + for file in $files; do dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` if test "X$dir" = "X$file"; then *************** *** 4728,4733 **** --- 4730,4736 ---- fi name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` test $mode = uninstall && objdir="$dir" + test $mode = clean && cleandirs="$cleandirs $objdir" rmfiles="$file" *************** *** 4810,4815 **** --- 4813,4825 ---- esac $show "$rm $rmfiles" $run $rm $rmfiles + done + + for dir in $cleandirs; do + if test -d "$cleandirs"; then + $show "rmdir $dir >/dev/null 2>&1" + $run rmdir $dir >/dev/null 2>&1 + fi done exit 0 ;; -- Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e/ _______________________________________________ Libtool mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/libtool