Added extra ranlib on libary files after being copied to the lib tree for OSX only.
[blender.git] / intern / moto / Makefile
index 97b4b321d992614581c318f808d1c04e29ccf48e..927b87bad24afb95f9cba10070cd7247a7626d9a 100644 (file)
@@ -48,5 +48,9 @@ install: all debug
        @[ -d $(NAN_MOTO)/lib/debug ] || mkdir $(NAN_MOTO)/lib/debug
        cp -f $(DIR)/libmoto.a $(NAN_MOTO)/lib/
        cp -f $(DIR)/debug/libmoto.a $(NAN_MOTO)/lib/debug/
        @[ -d $(NAN_MOTO)/lib/debug ] || mkdir $(NAN_MOTO)/lib/debug
        cp -f $(DIR)/libmoto.a $(NAN_MOTO)/lib/
        cp -f $(DIR)/debug/libmoto.a $(NAN_MOTO)/lib/debug/
+ifeq ($(OS),darwin)
+       ranlib $(NAN_MOTO)/lib/libmoto.a
+       ranlib $(NAN_MOTO)/lib/debug/libmoto.a
+endif
        cp -f include/*.h $(NAN_MOTO)/include/
 
        cp -f include/*.h $(NAN_MOTO)/include/