summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLeith Bade <leith@mapbox.com>2015-01-15 11:39:50 +1100
committerLeith Bade <leith@mapbox.com>2015-01-15 11:39:50 +1100
commitb7cc6bfaa686cfed1f0ac441693c5c070242343d (patch)
treef97b38dcdfbe67d6159c257d81c85380ea2a0347 /Makefile
parentddbfcada2776a86f8efb6cabba85f6c3a6633d38 (diff)
parentc6ca57045fb373d4fd76d1ec228bd35a518d06e8 (diff)
downloadqtlocation-mapboxgl-b7cc6bfaa686cfed1f0ac441693c5c070242343d.tar.gz
Merge branch 'master' of github.com:mapbox/mapbox-gl-native into android-mason
Conflicts: src/mbgl/shader/shader.cpp
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 14 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 6de809968e..c6e1101947 100644
--- a/Makefile
+++ b/Makefile
@@ -141,16 +141,21 @@ render: build/render/Makefile
##### Xcode projects ###########################################################
+.PHONY: clear_xcode_cache
clear_xcode_cache:
- @CUSTOM_DD=`defaults read com.apple.dt.Xcode IDECustomDerivedDataLocation 2>/dev/null`; \
- if [[ $$CUSTOM_DD ]]; then \
- echo clearing files in $$CUSTOM_DD older than one day; \
- find $$CUSTOM_DD/mapboxgl-app-* -mtime +1 | xargs rm -rf; \
- fi; \
- if [[ -d ~/Library/Developer/Xcode/DerivedData/ ]] && [[ ! $$CUSTOM_DD ]]; then \
- echo 'clearing files in ~/Library/Developer/Xcode/DerivedData/mapboxgl-app-* older than one day'; \
- find ~/Library/Developer/Xcode/DerivedData/mapboxgl-app-* -mtime +1 | xargs rm -rf; \
- fi
+ @CUSTOM_DD=`defaults read com.apple.dt.Xcode IDECustomDerivedDataLocation 2>/dev/null`; \
+ if [[ $$CUSTOM_DD ]]; then \
+ echo clearing files in $$CUSTOM_DD older than one day; \
+ find $$CUSTOM_DD/mapboxgl-app-* -mtime +1 | xargs rm -rf; \
+ fi; \
+ if [[ -d ~/Library/Developer/Xcode/DerivedData/ ]] && [[ ! $$CUSTOM_DD ]]; then \
+ echo 'clearing files in ~/Library/Developer/Xcode/DerivedData/mapboxgl-app-* older than one day'; \
+ find ~/Library/Developer/Xcode/DerivedData/mapboxgl-app-* -mtime +1 | xargs rm -rf; \
+ fi; \
+ if [[ -e ~/Library/Application\ Support/Mapbox\ GL/cache.db ]]; then \
+ echo 'removing ~/Library/Application\ Support/Mapbox\ GL/cache.db'; \
+ rm ~/Library/Application\ Support/Mapbox\ GL/cache.db; \
+ fi
xproj: build/macosx/mapboxgl-app.xcodeproj
open ./build/macosx/mapboxgl-app.xcodeproj