msxbuild/src/example/hello-make4msx/build.bat
Willem a1ae7248ea
All checks were successful
Run test asserts / Test-Asserts (push) Successful in 15s
Moved example into own sub folder and prefixed all.
2024-07-14 18:36:59 +02:00

31 lines
835 B
Batchfile

echo === Trigger workaround
rem Fixme make will not build without targets files
rem Fixme make will not build without updated time stamps
dir
copy /T build.bat HELLO.COM
dir/w utils
copy /T build.bat HELLO.HEX
dir/w utils
copy /T build.bat HELLO.REL
dir/w utils
copy /T HELLO.MAC HELLO.BAK
dir/w utils
copy /T HELLO.BAK HELLO.MAC
echo === Running make
omsxctl fail_after 300 seconds err_make 1
echo "echo --- build init" > build1.bat
make HELLO.MF /x > build2.bat
echo === Concat shutdown
echo "echo --- build shutdown" > build3.bat
IFF "shutdown" == %1
SET lastcmd=shutdown
ELSE
SET lastcmd=omsxctl fail_after 0
ENDIFF
echo %lastcmd% > build4.bat
concat build1.bat + build2.bat + build3.bat + build4.bat buildrun.bat
echo === Final script
type buildrun.bat
echo === Running build
omsxctl fail_after 300 seconds err_build 1
buildrun