Subject: bug#9464: repeated 'rm -f "./so_locations"' on make clean

From: Stefan Kost <[email-masked]>
Date: Thu, 08 Sep 2011 15:12:12 +0200

> libtool --version
ltmain.sh (GNU libtool) 2.2.6b

> make clean
rm -rf .libs _libs
test -z "libgstasf.la libgstdvdlpcmdec.la libgstdvdsub.la
libgstiec958.la libgstmpegaudioparse.la libgstmpegstream.la
libgstrmdemux.la libgstsynaesthesia.la" || rm -f libgstasf.la
libgstdvdlpcmdec.la libgstdvdsub.la libgstiec958.la
libgstmpegaudioparse.la libgstmpegstream.la libgstrmdemux.la
libgstsynaesthesia.la
rm -f "./so_locations"
rm -f "./so_locations"
rm -f "./so_locations"
rm -f "./so_locations"
rm -f "./so_locations"
rm -f "./so_locations"
rm -f "./so_locations"
rm -f "./so_locations"
rm -f *.o
rm -f *.lo

This is caused by:
clean-pluginLTLIBRARIES:
    -test -z "$(plugin_LTLIBRARIES)" || rm -f $(plugin_LTLIBRARIES)
    @list='$(plugin_LTLIBRARIES)'; for p in $$list; do \
      dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
      test "$$dir" != "$$p" || dir=.; \
      echo "rm -f \"$${dir}/so_locations\""; \
      rm -f "$${dir}/so_locations"; \
    done

a simple solution might be
test -d && (echo "rm -f \"$${dir}/so_locations\""; rm -f
"$${dir}/so_locations" ); \

Stefan