summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index c16c3f87c3..c1310d1559 100644
--- a/Makefile
+++ b/Makefile
@@ -51,18 +51,21 @@ run-linux: linux
##### Xcode projects ###########################################################
+clear_xcode_cache:
+ @if [[ -d ~/Library/Developer/Xcode/DerivedData/ ]]; then echo 'clearing files in xcode cache older than one day'; find ~/Library/Developer/Xcode/DerivedData/* -mtime +1 | xargs rm -rf; fi
+
# build Mac OS X project for Xcode
-xproj: config.gypi macosx/llmr-app.gyp
+xproj: config.gypi macosx/llmr-app.gyp clear_xcode_cache
deps/run_gyp macosx/llmr-app.gyp --depth=. --generator-output=./build -f xcode
open ./build/macosx/llmr-app.xcodeproj
# build iOS project for Xcode
-iproj: config.gypi ios/llmr-app.gyp
+iproj: config.gypi ios/llmr-app.gyp clear_xcode_cache
deps/run_gyp ios/llmr-app.gyp --depth=. --generator-output=./build -f xcode
open ./build/ios/llmr-app.xcodeproj
# build Linux project for Xcode (Runs on Mac OS X too, but without platform-specific code)
-lproj: config.gypi linux/llmr-app.gyp
+lproj: config.gypi linux/llmr-app.gyp clear_xcode_cache
deps/run_gyp linux/llmr-app.gyp --depth=. --generator-output=./build -f xcode
open ./build/linux/llmr-app.xcodeproj