make build/build's make forbuild run in the correct directory

This commit is contained in:
dzaima 2023-01-27 04:46:44 +02:00
parent c0eba0b2ca
commit ac2a1c528d

View File

@ -3,7 +3,7 @@ DIR="$(dirname $0)"
PREV_BQN="$DIR/obj2/for_build"
if [ ! -f "$PREV_BQN" ]; then
TMP_BQN="$DIR/obj2/for_build_tmp"
if make forbuild OUTPUT="$TMP_BQN"; then
if make -C "$DIR/.." forbuild OUTPUT="$TMP_BQN"; then
if [ "4" = "$("$TMP_BQN" -p "2+2")" ]; then
true
else