diff --git a/call_task.sh b/call_task.sh index 330ae0a..0ddba5d 100755 --- a/call_task.sh +++ b/call_task.sh @@ -5,6 +5,7 @@ TASK=$1 printf "${CYAN}===========[$TASK]===========\n" source cbuild/init.sh +clear_dir $OBJDIR if [ -f "$PRE_TASK_SCRIPT" ]; then printf "${BLUE}executing $PRE_TASK_SCRIPT\n" diff --git a/functions.sh b/functions.sh index 0caf552..f9f89fd 100755 --- a/functions.sh +++ b/functions.sh @@ -62,7 +62,6 @@ $(find $OBJDIR -name '*.a')" if $CMP_CPP $args -o $outfile $(echo $objects | tr '\n' ' ') then printf "${GREEN}file $CYAN$outfile ${GREEN}created\n${GRAY}" - clear_dir $OBJDIR else printf "${RED}some error happened\n${GRAY}" exit 1 @@ -79,7 +78,6 @@ function pack_static_lib { if ar rcs $outfile $(echo $objects | tr '\n' ' ') then printf "${GREEN}file $CYAN$outfile ${GREEN}created\n${GRAY}" - clear_dir $OBJDIR else printf "${RED}some error happened\n${GRAY}" exit 1