3 # travels down each subdirectory and cleans using make.
4 function clean_subdirectories()
6 # keep the variable local to avoid contaminating
10 # find all the subdirectories.
11 for smoot87 in $(find . -mindepth 1 -maxdepth 1 -type d); do
12 # make sure there's a makefile there.
13 if [ -f "$smoot87/makefile" ]; then
14 #echo -e "\n\n[[inside barriers, with filename=$burlap51 and all conditions met]]\n\n"
15 pushd "$smoot87" &>/dev/null
16 make --silent -I "$CLAM_SCRIPTS" NOT_FIRST_MAKE=t clean
19 echo "(skipping directory $smoot87)"
24 # execute our function on current directory.