From e5f28204a540637e91d8570594deb221bfc76aba Mon Sep 17 00:00:00 2001 From: nmlgc Date: Sun, 30 Aug 2020 23:33:47 +0200 Subject: [PATCH] [Build] 32-bit: Actually create `bin/Pipeline` during the 32-bit part -.- MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Lol, this led the bmp2arr compilation to fail on a clean checkout. Lesson learned: Always test on a clean clone, not in your separate test repo that you just `git pull` up to the final commit in a push, but with all the build artifacts still in thereā€¦ Also, yes, `mkdir` only supports backslashes. Part of P0001, funded by GhostPhanom. --- Makefile.mak | 1 - build32b.bat | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.mak b/Makefile.mak index 34e27841..1baf8a58 100644 --- a/Makefile.mak +++ b/Makefile.mak @@ -48,7 +48,6 @@ bin\piloadc.obj: libs\piloadc\piloadc.asm tlink /t /3 $** bin\Pipeline\grzview.com: Pipeline\grzview.cpp th01\formats\grz.cpp - mkdir bin\Pipeline $(CC) $(CFLAGS) -Z -mt -lt -nbin\Pipeline\ $** masters.lib bin\th01\zunsoft.com: th01\zunsoft.c diff --git a/build32b.bat b/build32b.bat index 30a6812b..52068ef9 100755 --- a/build32b.bat +++ b/build32b.bat @@ -20,7 +20,11 @@ REM ---------------------------------------------- set CXX32FLAGS=%CXX32FLAGS% -O2 -v- -x- +: Neither BCC32 nor TASM32 automatically create nonexisting output +: directories... +mkdir bin\Pipeline 2>NUL for /L %%i in (1,1,5) do mkdir bin\th0%%i 2>NUL + del /S *.obj set BMP2ARR=bin\Pipeline\bmp2arr.exe