summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLeith Bade <leith@mapbox.com>2015-01-22 21:34:11 +1100
committerLeith Bade <leith@mapbox.com>2015-01-22 21:34:11 +1100
commit6ae8249ede61444e8efce57b0c8d807c7bf40dfc (patch)
tree045389f851e3466aba0191121db2337bab2298b7 /Makefile
parentfe2dae7af1967f89b082778089dd87b49f163827 (diff)
parentb6ef236d85f329ecf39e51aab2338038c1066d8d (diff)
downloadqtlocation-mapboxgl-6ae8249ede61444e8efce57b0c8d807c7bf40dfc.tar.gz
Merge branch 'master' of github.com:mapbox/mapbox-gl-native into android-mason
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 13 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index c6e1101947..25eb94c438 100644
--- a/Makefile
+++ b/Makefile
@@ -143,19 +143,17 @@ render: build/render/Makefile
.PHONY: clear_xcode_cache
clear_xcode_cache:
+ifeq ($(PLATFORM), osx)
@CUSTOM_DD=`defaults read com.apple.dt.Xcode IDECustomDerivedDataLocation 2>/dev/null`; \
- if [[ $$CUSTOM_DD ]]; then \
+ 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 \
+ 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
+endif
xproj: build/macosx/mapboxgl-app.xcodeproj
open ./build/macosx/mapboxgl-app.xcodeproj
@@ -173,7 +171,15 @@ lproj: build/linux/mapboxgl-app.xcodeproj
##### Maintenace operations ####################################################
-clean: clear_xcode_cache
+.PHONY: clear_sqlite_cache
+clear_sqlite_cache:
+ifeq ($(PLATFORM), osx)
+ rm -f ~/Library/Application\ Support/Mapbox\ GL/cache.db
+else
+ rm -f /tmp/mbgl-cache.db
+endif
+
+clean: clear_sqlite_cache clear_xcode_cache
-find ./deps/gyp -name "*.pyc" -exec rm {} \;
-rm -rf ./build/
-rm -rf ./macosx/build/