Added group defaultconfig to group mainmodule.
[blender-staging.git] / intern / bsp / Makefile
index 371c43c848a96e9e39ef7f29ccdb677053b9e7a6..818e4d69606c85c35912799d09b7eef99f644305 100644 (file)
@@ -25,7 +25,7 @@
 #
 # The Original Code is: all of this file.
 #
-# Contributor(s): none yet.
+# Contributor(s): Hans Lambermont
 #
 # ***** END GPL/BL DUAL LICENSE BLOCK *****
 # bsp main makefile.
@@ -46,9 +46,13 @@ install: all debug
        @[ -d $(NAN_BSP)/include ] || mkdir $(NAN_BSP)/include
        @[ -d $(NAN_BSP)/lib ] || mkdir $(NAN_BSP)/lib
        @[ -d $(NAN_BSP)/lib/debug ] || mkdir $(NAN_BSP)/lib/debug
-       cp -f $(DIR)/libbsp.a $(NAN_BSP)/lib/
-       cp -f $(DIR)/debug/libbsp.a $(NAN_BSP)/lib/debug/
-       cp -f extern/*.h $(NAN_BSP)/include/
+       @../tools/cpifdiff.sh $(DIR)/libbsp.a $(NAN_BSP)/lib/
+       @../tools/cpifdiff.sh $(DIR)/debug/libbsp.a $(NAN_BSP)/lib/debug/
+ifeq ($(OS),darwin)
+       ranlib $(NAN_BSP)/lib/libbsp.a
+       ranlib $(NAN_BSP)/lib/debug/libbsp.a
+endif
+       @../tools/cpifdiff.sh extern/*.h $(NAN_BSP)/include/