summaryrefslogtreecommitdiffhomepage
path: root/src/Makefile
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2018-08-25 18:25:51 +0200
committerraysan5 <[email protected]>2018-08-25 18:25:51 +0200
commit207b5a26b18e669e48b635f088ee57abd9694134 (patch)
treef861dcd3851fe8c6808152713f2f6cbf2f9035d9 /src/Makefile
parentba257bc44766937bcdb69d2aa7c244be704c5d55 (diff)
downloadraylib-207b5a26b18e669e48b635f088ee57abd9694134.tar.gz
raylib-207b5a26b18e669e48b635f088ee57abd9694134.zip
Create release directory if not exist
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 26233c95..ac4b15b4 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -201,7 +201,7 @@ RAYLIB_RELEASE_PATH ?= $(RAYLIB_PATH)/release/libs
# Define output directory for compiled library
ifeq ($(PLATFORM),PLATFORM_DESKTOP)
ifeq ($(PLATFORM_OS),WINDOWS)
- RAYLIB_RELEASE_PATH = $(RAYLIB_PATH)/release/libs/win32/mingw32
+ RAYLIB_RELEASE_PATH = $(RAYLIB_PATH)\release\libs\win32\mingw32
endif
ifeq ($(PLATFORM_OS),LINUX)
RAYLIB_RELEASE_PATH = $(RAYLIB_PATH)/release/libs/linux
@@ -460,7 +460,13 @@ ifeq ($(PLATFORM_OS),LINUX)
endif
# Compile raylib library
+# NOTE: Release directory is created if not exist
raylib: $(OBJS)
+ifeq ($(PLATFORM_OS),WINDOWS)
+ if not exist $(RAYLIB_RELEASE_PATH) mkdir $(RAYLIB_RELEASE_PATH)
+else
+ mkdir -p $(RAYLIB_RELEASE_PATH)
+endif
ifeq ($(PLATFORM),PLATFORM_WEB)
# Compile raylib for web.
emcc -O1 $(OBJS) -o $(RAYLIB_RELEASE_PATH)/libraylib.bc