diff options
author | Mike Morris <michael.patrick.morris@gmail.com> | 2015-01-21 14:29:41 -0500 |
---|---|---|
committer | Mike Morris <michael.patrick.morris@gmail.com> | 2015-01-21 14:29:41 -0500 |
commit | bee9ada450ba0a436837bbff71f960454b231835 (patch) | |
tree | 9dcad9f7f7eba42e762ae0d27ad2ac39e82e5d11 | |
parent | 161e187c6f31b48ec750b5f17efd17e88eadd809 (diff) | |
download | qtlocation-mapboxgl-bee9ada450ba0a436837bbff71f960454b231835.tar.gz |
clear sqlite cache
-rw-r--r-- | Makefile | 20 |
1 files changed, 15 insertions, 5 deletions
@@ -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/ |