From 6438ffb483cfaf7f1cb6b7ad55183c0ad8924fe3 Mon Sep 17 00:00:00 2001 From: Jonathan Moallem Date: Sun, 29 Nov 2020 16:58:47 +1100 Subject: [PATCH] Update Makefile --- Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 96b77a0..efba5e9 100644 --- a/Makefile +++ b/Makefile @@ -58,9 +58,12 @@ include: submodules # Copy commands for Windows ifeq ($(platform), Windows) -mkdir $(mkdirOptions) .\include - robocopy "vendor\raylib-cpp\vendor\raylib\src" "include" raylib.h $(THEN) if errorlevel gtr 7 echo errorlevel - robocopy "vendor\raylib-cpp\vendor\raylib\src" "include" raymath.h $(THEN) if errorlevel gtr 7 echo errorlevel - robocopy "vendor\raylib-cpp\include" "include" *.hpp $(THEN) if errorlevel gtr 7 echo errorlevel + -robocopy "vendor\raylib-cpp\vendor\raylib\src" "include" raylib.h + if errorlevel gtr 7 exit errorlevel + -robocopy "vendor\raylib-cpp\vendor\raylib\src" "include" raymath.h + 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 +77,8 @@ 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) if errorlevel gtr 7 echo /b errorlevel + -robocopy "vendor\raylib-cpp\vendor\raylib\src" "lib\Windows" libraylib.a + if errorlevel gtr 7 exit errorlevel else mkdir $(mkdirOptions) lib/$(platform) cp vendor/raylib-cpp/vendor/raylib/$(libGenDirectory)/libraylib.a lib/$(platform)/libraylib.a