#!/bin/sh

# make clean
dirs=`find . -name Makefile | sed 's/Makefile$//'`
for i in $dirs; do
  make -C $i clean
  done

# remove configure droppings
rm -f `find . -name "config.cache"`
rm -f `find . -name "config.h"`
rm -f `find . -name "config.log"`
rm -f `find . -name "config.status"`
rm -f `find . -name "*.in" | sed 's/.in$//' | grep -v 'configure$'`

# remove backups
rm -f `find . -name "*~"`
rm -f `find . -name "*.bak"`

# remove object files and libraries
rm -f `find . -name "*.o"`
rm -f `find . -name "*.a"`
rm -f `find . -name "*.so"`
rm -f `find . -name "*.so.*"`

# remove patch droppings
rm -f `find . -name "*.rej"`
rm -f `find . -name "*.orig"`

# remove profiling information (for gprof)
rm -f `find . -name "gmon.out"`
#!/bin/sh

# make clean
dirs=`find . -name Makefile | sed 's/Makefile$//'`
for i in $dirs; do
  make -C $i clean
  done

# remove configure droppings
rm -f `find . -name "config.cache"`
rm -f `find . -name "config.h"`
rm -f `find . -name "config.log"`
rm -f `find . -name "config.status"`
rm -f `find . -name "*.in" | sed 's/.in$//' | grep -v 'configure$'`

# remove backups
rm -f `find . -name "*~"`
rm -f `find . -name "*.bak"`

# remove object files and libraries
rm -f `find . -name "*.o"`
rm -f `find . -name "*.a"`
rm -f `find . -name "*.so"`
rm -f `find . -name "*.so.*"`

# remove patch droppings
rm -f `find . -name "*.rej"`
rm -f `find . -name "*.orig"`

# remove profiling information (for gprof)
rm -f `find . -name "gmon.out"`
