summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMike Morris <michael.patrick.morris@gmail.com>2015-01-21 15:16:52 -0500
committerMike Morris <michael.patrick.morris@gmail.com>2015-01-21 15:16:52 -0500
commitad7f68e3861e681e2847f608b7de2309edcc0484 (patch)
treea23e6718db5e56f3abd32fc15e9201e19dfb5fd2 /Makefile
parentc18089b6d7964fc62b9c0ce1c0521b9b55d5012b (diff)
downloadqtlocation-mapboxgl-ad7f68e3861e681e2847f608b7de2309edcc0484.tar.gz
simplify clear_sqlite_cache
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 2 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index f760ccca7a..3bb8e2d8ff 100644
--- a/Makefile
+++ b/Makefile
@@ -148,15 +148,9 @@ lproj: build/linux/mapboxgl-app.xcodeproj
.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
+ rm -f ~/Library/Application\ Support/Mapbox\ GL/cache.db
else
- if [ -e /tmp/mbgl-cache.db ]; then \
- echo 'removing /tmp/mbgl-cache.db'; \
- rm /tmp/mbgl-cache.db; \
- fi
+ rm -f /tmp/mbgl-cache.db
endif
clean: clear_sqlite_cache clear_xcode_cache