find . -name \*~ -exec rm {} \;
find . -name \*.o -exec rm {} \;
find . -name \*.so -exec rm {} \;
find . -name "#*#" -exec rm {} \;

rm -rf ./inst/lib

# prepare inst folder
# copy over all sources from Shark!
rm -rf ./inst/include/shark
mkdir -p ./inst/include
cp -R ./src/shark ./inst/include/shark

# this one hurts
mv ./inst/include/shark/Algorithms/DirectSearch/Operators/Recombination/SimulatedBinaryCrossover.h  ./inst/include/shark/Algorithms/DirectSearch/Operators/Recombination/BinaryCrossover.h

# copy over utils
cp ./src/utils.h ./inst/skeleton
cp ./src/utils.cpp ./inst/skeleton

