Update make system for darwin;
[blender-staging.git] / source / darwin / Makefile
index 9af61d90d9ac10e37f97bdcaadab6e7c49aa56ec..b87e290011fa1aa015297a898b25369fc315f483 100644 (file)
@@ -1,5 +1,5 @@
 #
-# $Id: Makefile,v 1.3 2002/11/03 22:38:32 maarten Exp $
+# $Id: Makefile,v 1.7 2003/05/12 18:12:25 sgefant Exp $
 #
 # ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
 #
@@ -39,11 +39,19 @@ all::
        @echo "---> creating directory structure for $(APPLICATION)"
        @rm -rf $(DIR)/bin/$(APPLICATION).app
        @cp -R $(APPLICATION).app $(DIR)/bin
-       @#cat $(APPLICATION).app/Contents/Info.plist | sed s/VERSION/`cat ../../VERSION`/ | sed s/DATE/`date +'%Y-%b-%d'`/ > $(DIR)/bin/$(APPLICATION).app/Contents/Info.plist
+       @cat $(APPLICATION).app/Contents/Info.plist | sed s/VERSION/`cat ../../release/VERSION`/ | sed s/DATE/`date +'%Y-%b-%d'`/ > $(DIR)/bin/$(APPLICATION).app/Contents/Info.plist
        @echo "---> copying binary"
        @cp $(DIR)/bin/$(APPLICATION) $(DIR)/bin/$(APPLICATION).app/Contents/MacOS/
        @echo "---> adding excutable attributes"
        @chmod +x $(DIR)/bin/$(APPLICATION).app/Contents/MacOS/$(APPLICATION)
+ifeq ($(APPLICATION), blender)
+       @echo "---> copying message files"
+       @cp -R $(NANBLENDERHOME)/bin/.blender/locale $(DIR)/bin/$(APPLICATION).app/Contents/Resources
+       @echo "---> copying .Blanguages"
+       @cp $(NANBLENDERHOME)/bin/.blender/.Blanguages $(DIR)/bin/$(APPLICATION).app/Contents/Resources
+       @echo "---> copying .blender/ scripts"
+       @cp -R $(NANBLENDERHOME)/bin/.blender $(DIR)/bin/$(APPLICATION).app/Contents/MacOS
+endif
        @echo "---> removing CVS directories and Mac hidden files from distribution"
        @find $(DIR)/bin/$(APPLICATION).app -name CVS -prune -exec rm -rf {} \;
        @find $(DIR)/bin/$(APPLICATION).app -name .DS_Store -exec rm -f {} \;