clear xcode caches if they appear older than a day - refs #174

This commit is contained in:
Dane Springmeyer
2014-05-08 14:25:36 -07:00
parent c4067e28ba
commit f02c572618

View File

@@ -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