From 9adda4ead06044ad7eae9e71a91fe8b25637fd94 Mon Sep 17 00:00:00 2001 From: Jonathan Moallem Date: Sun, 29 Nov 2020 16:45:08 +1100 Subject: [PATCH] Changed then to logical OR --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index fcc7e08..3a370cb 100644 --- a/Makefile +++ b/Makefile @@ -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 $(THEN) if errorlevel gtr 7 exit /b errorlevel - robocopy "vendor\raylib-cpp\vendor\raylib\src" "include" raymath.h $(THEN) if errorlevel gtr 7 exit /b errorlevel - robocopy "vendor\raylib-cpp\include" "include" *.hpp $(THEN) if errorlevel gtr 7 exit /b 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 || 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 $(THEN) if errorlevel gtr 7 exit /b errorlevel + robocopy "vendor\raylib-cpp\vendor\raylib\src" "lib\Windows" libraylib.a || if errorlevel gtr 7 exit /b errorlevel else mkdir $(mkdirOptions) lib/$(platform) cp vendor/raylib-cpp/vendor/raylib/$(libGenDirectory)/libraylib.a lib/$(platform)/libraylib.a