From 8c302470e99c4e95850817c26bf2dd798abcd27a Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 4 Jan 2013 18:59:23 +0100 Subject: [PATCH] (PS3) Fixes Makefile - doesn't do unnecessary git clones when not necessary now --- Makefile.ps3 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile.ps3 b/Makefile.ps3 index df1e6e8cce..c135841dec 100644 --- a/Makefile.ps3 +++ b/Makefile.ps3 @@ -151,12 +151,12 @@ copy-media-files: create-shaders: ifeq ($(DOWNLOAD_SHADERS),1) - if [ -d $(SHADER_PKG_DIR) ]; then - cd $(SHADER_PKG_DIR) - $(GIT) pull - cd ../../../../.. - else - $(GIT) clone git://github.com/libretro/common-shaders.git $(SHADER_PKG_DIR) + @if test -d $(SHADER_PKG_DIR); then \ + cd $(SHADER_PKG_DIR); \ + $(GIT) pull; \ + cd ../../../../..; \ + else \ + $(GIT) clone git://github.com/libretro/common-shaders.git $(SHADER_PKG_DIR); \ fi endif