Update Makefile
This commit is contained in:
parent
d4093b8bd7
commit
c8e225e515
11
Makefile
11
Makefile
@ -12,6 +12,9 @@ ifeq ($(OS), Windows_NT)
|
||||
# Set Windows commands
|
||||
THEN = &
|
||||
cleanCommand = del ${CURDIR}\build\*.exe
|
||||
|
||||
echo if errorlevel gtr 7 exit errorlevel > CheckCopyError.bat
|
||||
type CheckError.bat
|
||||
else
|
||||
# Check for MacOS/Linux
|
||||
UNAMEOS := $(shell uname)
|
||||
@ -58,9 +61,9 @@ include: submodules
|
||||
# Copy commands for Windows
|
||||
ifeq ($(platform), Windows)
|
||||
-mkdir $(mkdirOptions) .\include
|
||||
robocopy "vendor\raylib-cpp\vendor\raylib\src" "include" raylib.h $(THEN) errorlevel gtr 7 && exit errorlevel
|
||||
robocopy "vendor\raylib-cpp\vendor\raylib\src" "include" raymath.h $(THEN) errorlevel gtr 7 && exit errorlevel
|
||||
robocopy "vendor\raylib-cpp\include" "include" *.hpp $(THEN) errorlevel gtr 7 && exit errorlevel
|
||||
robocopy "vendor\raylib-cpp\vendor\raylib\src" "include" raylib.h $(THEN) CheckCopyError.bat
|
||||
robocopy "vendor\raylib-cpp\vendor\raylib\src" "include" raymath.h $(THEN) CheckCopyError.bat
|
||||
robocopy "vendor\raylib-cpp\include" "include" *.hpp $(THEN) CheckCopyError.bat
|
||||
# Copy commands for UNIX/Linux
|
||||
else
|
||||
mkdir $(mkdirOptions) include
|
||||
@ -74,7 +77,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 $(THEN) errorlevel gtr 7 && exit errorlevel
|
||||
robocopy "vendor\raylib-cpp\vendor\raylib\src" "lib\Windows" libraylib.a $(THEN) CheckCopyError.bat
|
||||
else
|
||||
mkdir $(mkdirOptions) lib/$(platform)
|
||||
cp vendor/raylib-cpp/vendor/raylib/$(libGenDirectory)/libraylib.a lib/$(platform)/libraylib.a
|
||||
|
Loading…
Reference in New Issue
Block a user