Skip to content

Commit 207b5a2

Browse files
committed
Create release directory if not exist
1 parent ba257bc commit 207b5a2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ RAYLIB_RELEASE_PATH ?= $(RAYLIB_PATH)/release/libs
201201
# Define output directory for compiled library
202202
ifeq ($(PLATFORM),PLATFORM_DESKTOP)
203203
ifeq ($(PLATFORM_OS),WINDOWS)
204-
RAYLIB_RELEASE_PATH = $(RAYLIB_PATH)/release/libs/win32/mingw32
204+
RAYLIB_RELEASE_PATH = $(RAYLIB_PATH)\release\libs\win32\mingw32
205205
endif
206206
ifeq ($(PLATFORM_OS),LINUX)
207207
RAYLIB_RELEASE_PATH = $(RAYLIB_PATH)/release/libs/linux
@@ -460,7 +460,13 @@ ifeq ($(PLATFORM_OS),LINUX)
460460
endif
461461

462462
# Compile raylib library
463+
# NOTE: Release directory is created if not exist
463464
raylib: $(OBJS)
465+
ifeq ($(PLATFORM_OS),WINDOWS)
466+
if not exist $(RAYLIB_RELEASE_PATH) mkdir $(RAYLIB_RELEASE_PATH)
467+
else
468+
mkdir -p $(RAYLIB_RELEASE_PATH)
469+
endif
464470
ifeq ($(PLATFORM),PLATFORM_WEB)
465471
# Compile raylib for web.
466472
emcc -O1 $(OBJS) -o $(RAYLIB_RELEASE_PATH)/libraylib.bc

0 commit comments

Comments
 (0)