summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDane Springmeyer <dane@mapbox.com>2014-05-08 14:25:36 -0700
committerDane Springmeyer <dane@mapbox.com>2014-05-08 14:25:36 -0700
commitf02c572618bdca669c61cd3cb51a8b85e0fc6657 (patch)
tree222f5ad6d9b91bb2caed0091fc230f5526932cd3 /Makefile
parentc4067e28ba7bc3e3899dfc23c102411a7cdc2b2a (diff)
downloadqtlocation-mapboxgl-f02c572618bdca669c61cd3cb51a8b85e0fc6657.tar.gz
clear xcode caches if they appear older than a day - refs #174
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