remove temp file when nothing to do
This commit is contained in:
parent
97911f0a37
commit
0e8435d889
1 changed files with 1 additions and 0 deletions
|
@ -118,6 +118,7 @@ build() {
|
||||||
make -f "${MAKEFILE}" -e "${TARGET}" -n | grep "^${CC}" | wc -l > .cbuild_prog.tmp
|
make -f "${MAKEFILE}" -e "${TARGET}" -n | grep "^${CC}" | wc -l > .cbuild_prog.tmp
|
||||||
if [ "$(cat .cbuild_prog.tmp)" = 0 ]; then
|
if [ "$(cat .cbuild_prog.tmp)" = 0 ]; then
|
||||||
info "Target [0m${TARGET}[34m up to date"
|
info "Target [0m${TARGET}[34m up to date"
|
||||||
|
rm .cbuild_prog.tmp
|
||||||
return 0;
|
return 0;
|
||||||
fi
|
fi
|
||||||
info "Beginning build..."
|
info "Beginning build..."
|
||||||
|
|
Loading…
Reference in a new issue