#!/bin/ksh
# $Id: clr_make 728 2009-09-04 11:27:47Z bellier $
#---------------------------------------------------------------------
#- Remove Makefiles and data according to an environment
#---------------------------------------------------------------------
d_n=$(dirname ${0});
#-
l_rep=$(find ${d_n}/.. -name AA_make -print)
#-
echo "";
echo "Remove Makefiles and data according to an environment";
echo "";
#-
for i in $l_rep
do
  j=${i%/AA_make}
  echo "Remove in $j ...";
  rm -f ${j}/Makefile
done
echo "Remove ${d_n}/.host_target";
rm -f ${d_n}/.host_target
#-
l_prism=${d_n}'/../prism' 
if [ -d ${l_prism} ]; then
  echo "Remove COMP_oasis3 and COMP_libs" 
  rm -f ${l_prism}/src/mod/oasis3/COMP_oasis3*
  rm -f ${l_prism}/util/COMP_libs*
fi
echo "";
#-
exit 0;
