rm -rf _build 
rm -rf tool/lib/referl_core/_beam

# removeing genersted files
find . -type f -name "*_erl_*" | grep "tool" | grep -E '\.erl$|\.yrl$|\.hrl' | xargs rm

make clean -C tool/lib/referl_core/nif_graph
make clean -C tool/lib/referl_user/dep_graph
make clean -C tool/lib/referl_core/kyoto
make clean -C tool/lib/referl_user/igraph

rm -rf tool/lib/referl_user/igraph/lib