Skip to content

Commit 4106cda

Browse files
committed
create bin directory and copy move.exe to it when building
1 parent 9abcdff commit 4106cda

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

build.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ rem or
7070
rem --best for smallest
7171

7272
%MAKE% -C src %TARGET%
73+
IF EXIST src\*.EXE IF NOT EXIST bin MKDIR bin > NUL
74+
rem we COPY instead of MOVE as otherwise forces linking every run (since no src\MOVE.EXE exist)
75+
IF EXIST src\*.EXE COPY /Y src\*.EXE bin\ > NUL
7376

7477
set CC=
7578
set COMFLAGS=

src/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ kitten.obj: ../kitten/kitten.c
1010
tnyprntf.obj: ../tnyprntf/tnyprntf.c
1111
$(CC) $(_CFLAGS)$@ -c $^
1212

13+
# Note: we can't MOVE file as it will call our MOVE.EXE on Win64
1314
move.exe move.com: move.c movedir.c misc.c $(EXTRA_OBJS)
1415
$(CC) $(CFLAGS)$@ $^ $(LDFLAGS)
1516
$(UPXARGS) $@

0 commit comments

Comments
 (0)