msxbuild/src/example/hello-make4msx/build.bat

32 lines
835 B
Batchfile
Raw Normal View History

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
2024-07-01 00:57:03 +02:00
IFF "shutdown" == %1
SET lastcmd=shutdown
ELSE
SET lastcmd=omsxctl fail_after 0
ENDIFF
2024-07-01 00:57:03 +02:00
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