summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMike Morris <michael.patrick.morris@gmail.com>2015-01-21 14:29:41 -0500
committerMike Morris <michael.patrick.morris@gmail.com>2015-01-21 14:29:41 -0500
commitbee9ada450ba0a436837bbff71f960454b231835 (patch)
tree9dcad9f7f7eba42e762ae0d27ad2ac39e82e5d11 /Makefile
parent161e187c6f31b48ec750b5f17efd17e88eadd809 (diff)
downloadqtlocation-mapboxgl-bee9ada450ba0a436837bbff71f960454b231835.tar.gz
clear sqlite cache
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 15 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 35a3d866ee..bacf373558 100644
--- a/Makefile
+++ b/Makefile
@@ -127,10 +127,6 @@ ifeq ($(PLATFORM), osx)
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
@@ -149,7 +145,21 @@ lproj: build/linux/mapboxgl-app.xcodeproj
##### Maintenace operations ####################################################
-clean: clear_xcode_cache
+.PHONY: clear_sqlite_cache
+clear_sqlite_cache:
+ifeq ($(PLATFORM), osx)
+ 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
+else
+ if [ -e /tmp/mbgl-cache.db ]; then \
+ echo 'removing /tmp/mbgl-cache.db'; \
+ rm /tmp/mbgl-cache.db; \
+ fi
+endif
+
+clean: clear_sqlite_cache clear_xcode_cache
-find ./deps/gyp -name "*.pyc" -exec rm {} \;
-rm -rf ./build/
-rm -rf ./macosx/build/