include nan_definitions.mk
-LINGUAS = it
+LINGUAS = ca cs 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)