Don't fail cleaning if the locale directory doesn't exist.
[blender-staging.git] / po / Makefile
index 21a0a348f4408c245e06399f5427a859cce0c1ab..92cb0a320af1decdf2d594c0f2facccd222c7de0 100644 (file)
@@ -46,7 +46,11 @@ endif
 all debug:: $(LINGUAS)
 
 clean::
-       rm -r $(OCGDIR)/bin/.blender/locale
+ifeq ($(OS), darwin)
+       rm -rf $(OCGDIR)/bin/blender.app/Contents/Resources/locale/
+else
+       rm -rf $(OCGDIR)/bin/.blender/locale/
+endif
 
 $(LINGUAS):
        mkdir -p $(DIR)