Don't fail cleaning if the locale directory doesn't exist.
[blender-staging.git] / po / Makefile
index d63d0dcc6934aa893cf3cb4af5a17de65dbbcfb6..92cb0a320af1decdf2d594c0f2facccd222c7de0 100644 (file)
@@ -36,13 +36,21 @@ SOURCEDIR = blender/po
 
 include nan_definitions.mk
 
-LINGUAS = it
+LINGUAS = ca de es fr it ja nl sv
+ifeq ($(OS), darwin)
+DIR = $(OCGDIR)/bin/blender.app/Contents/Resources/locale/$@/LC_MESSAGES/
+else
 DIR = $(OCGDIR)/bin/.blender/locale/$@/LC_MESSAGES/
+endif
 
-all:: $(LINGUAS)
+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)