remove temp file when nothing to do

This commit is contained in:
Noah Swerhun 2021-12-25 23:17:15 -06:00
parent 97911f0a37
commit 0e8435d889

View file

@ -118,6 +118,7 @@ build() {
make -f "${MAKEFILE}" -e "${TARGET}" -n | grep "^${CC}" | wc -l > .cbuild_prog.tmp
if [ "$(cat .cbuild_prog.tmp)" = 0 ]; then
info "Target ${TARGET} up to date"
rm .cbuild_prog.tmp
return 0;
fi
info "Beginning build..."