forked from lda/telodendria
I actually decided I don't like this.
This commit is contained in:
parent
71a0181a6a
commit
27c4713e5d
1 changed files with 2 additions and 10 deletions
12
tools/bin/td
12
tools/bin/td
|
@ -100,11 +100,7 @@ recipe_build() {
|
|||
objs="$objs $obj"
|
||||
|
||||
if [ $(mod_time "$src") -ge $(mod_time "$obj") ]; then
|
||||
if [ -t 1 ]; then
|
||||
printf "CC %s%*c\r" "$(basename $obj)" "16" " "
|
||||
else
|
||||
echo "CC $(basename $obj)"
|
||||
fi
|
||||
echo "CC $(basename $obj)"
|
||||
obj_dir=$(dirname "$obj")
|
||||
mkdir -p "$obj_dir"
|
||||
if ! $CC $CFLAGS -Iinclude -c -o "$obj" "$src"; then
|
||||
|
@ -115,11 +111,7 @@ recipe_build() {
|
|||
done
|
||||
|
||||
if [ $do_rebuild -eq 1 ] || [ ! -f "../build/$PROG" ]; then
|
||||
if [ -t 1 ]; then
|
||||
printf "LD %s%*c\n" "$PROG" "16" " "
|
||||
else
|
||||
echo "LD $PROG"
|
||||
fi
|
||||
echo "LD $PROG"
|
||||
$CC $LDFLAGS -o "../build/$PROG" $objs
|
||||
else
|
||||
echo "Up to date."
|
||||
|
|
Loading…
Reference in a new issue