1
0
mirror of https://github.com/UzixLS/pacemuzx.git synced 2025-07-19 07:11:20 +03:00

Build system improvements

- added 'make run' rule to help with testing
- preserved pasmo exit code on Win32 assembly failure
- fixed Win32 clean rule so it removes all files cleanly
- easier to change target basename
This commit is contained in:
Simon Owen
2013-06-03 22:32:49 +01:00
parent d004ed1a85
commit 9f75a8d527
4 changed files with 36 additions and 19 deletions

View File

@ -1,13 +1,17 @@
@echo off
setlocal
set NAME=pacemuzx
if "%1"=="clean" goto clean
png2bin.pl tiles.png 6
png2bin.pl sprites.png 12
pasmo --tap pacemuzx.asm pacemuzx.o pacemuzx.sym
pasmo --tap %NAME%.asm %NAME%.o %NAME%.sym
if errorlevel 1 goto end
copy /b loader.tap+pacemuzx.o pacemuzx.tap
copy /b loader.tap+%NAME%.o %NAME%.tap
if "%1"=="run" start %NAME%.tap
if not "%1"=="dist" goto end
@ -21,9 +25,11 @@ move end.part dist\
goto end
:clean
if exist pacemuzx.tap del pacemuzx.tap pacemuzx.sym pacemuzx.o
if exist %NAME%.tap del %NAME%.tap %NAME%.sym %NAME%.o
if exist tiles.bin del tiles.bin sprites.bin
if exist dist\ del dist\Makefile dist\make.bat dist\start.part dist\end.part dist\pacemuzx.tap
if exist dist\ del dist\ReadMe.txt dist\Makefile dist\make.bat dist\start.part dist\end.part
if exist dist\%NAME%.tap del dist\%NAME%.tap
if exist dist\ rmdir dist
:end
endlocal