only run clear_xcode_cache on OS X

This commit is contained in:
Mike Morris
2015-01-14 13:02:16 -08:00
parent fc7c6d951d
commit 161e187c6f

View File

@@ -117,6 +117,7 @@ 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 \
echo clearing files in $$CUSTOM_DD older than one day; \
@@ -130,6 +131,7 @@ clear_xcode_cache:
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