I actually decided I don't like this.

This commit is contained in:
Jordan Bancino 2023-02-11 00:07:18 +00:00
parent 71a0181a6a
commit 27c4713e5d

View file

@ -100,11 +100,7 @@ recipe_build() {
objs="$objs $obj" objs="$objs $obj"
if [ $(mod_time "$src") -ge $(mod_time "$obj") ]; then if [ $(mod_time "$src") -ge $(mod_time "$obj") ]; then
if [ -t 1 ]; then echo "CC $(basename $obj)"
printf "CC %s%*c\r" "$(basename $obj)" "16" " "
else
echo "CC $(basename $obj)"
fi
obj_dir=$(dirname "$obj") obj_dir=$(dirname "$obj")
mkdir -p "$obj_dir" mkdir -p "$obj_dir"
if ! $CC $CFLAGS -Iinclude -c -o "$obj" "$src"; then if ! $CC $CFLAGS -Iinclude -c -o "$obj" "$src"; then
@ -115,11 +111,7 @@ recipe_build() {
done done
if [ $do_rebuild -eq 1 ] || [ ! -f "../build/$PROG" ]; then if [ $do_rebuild -eq 1 ] || [ ! -f "../build/$PROG" ]; then
if [ -t 1 ]; then echo "LD $PROG"
printf "LD %s%*c\n" "$PROG" "16" " "
else
echo "LD $PROG"
fi
$CC $LDFLAGS -o "../build/$PROG" $objs $CC $LDFLAGS -o "../build/$PROG" $objs
else else
echo "Up to date." echo "Up to date."