Added error level remapping

This commit is contained in:
Aryeh 2020-11-29 16:30:10 +11:00 committed by GitHub
parent 320bc1b7f4
commit bb08e6b6cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ ifeq ($(OS), Windows_NT)
# Set Windows commands
THEN = &&
cleanCommand = del ${CURDIR}\build\app.exe
cleanCommand = del ${CURDIR}\build\*.exe
else
# Check for MacOS/Linux
UNAMEOS := $(shell uname)
@ -58,9 +58,9 @@ include: submodules
# Copy commands for Windows
ifeq ($(platform), Windows)
-mkdir $(mkdirOptions) .\include
-robocopy "vendor\raylib-cpp\vendor\raylib\src" "include" raylib.h
-robocopy "vendor\raylib-cpp\vendor\raylib\src" "include" raymath.h
-robocopy "vendor\raylib-cpp\include" "include" *.hpp
robocopy "vendor\raylib-cpp\vendor\raylib\src" "include" raylib.h $(THEN) if errorlevel gtr 7 exit errorlevel
robocopy "vendor\raylib-cpp\vendor\raylib\src" "include" raymath.h $(THEN) if errorlevel gtr 7 exit errorlevel
robocopy "vendor\raylib-cpp\include" "include" *.hpp $(THEN) if errorlevel gtr 7 exit errorlevel
# Copy commands for UNIX/Linux
else
mkdir $(mkdirOptions) include
@ -74,7 +74,7 @@ lib: submodules
cd vendor/raylib-cpp/vendor/raylib/src $(THEN) $(MAKE) PLATFORM=PLATFORM_DESKTOP
ifeq ($(platform), Windows)
-mkdir $(mkdirOptions) lib\$(platform)
-robocopy "vendor\raylib-cpp\vendor\raylib\src" "lib\Windows" libraylib.a
robocopy "vendor\raylib-cpp\vendor\raylib\src" "lib\Windows" libraylib.a $(THEN) if errorlevel gtr 7 exit errorlevel
else
mkdir $(mkdirOptions) lib/$(platform)
cp vendor/raylib-cpp/vendor/raylib/$(libGenDirectory)/libraylib.a lib/$(platform)/libraylib.a