Needed to add the conditional commands to ranlib for the darwin platforms.
authorEd Halley <ed@halley.cc>
Thu, 6 Jul 2006 00:05:33 +0000 (00:05 +0000)
committerEd Halley <ed@halley.cc>
Thu, 6 Jul 2006 00:05:33 +0000 (00:05 +0000)
Matches the example of the other intern/*/Makefile libraries.

intern/memutil/Makefile

index 6c38296a6f6b7917d3b84692347c0cf8daa1733e..57a8adc8e10d17f73c72423a0de40e3be55fb8e9 100644 (file)
@@ -48,5 +48,9 @@ install: all debug
        @[ -d $(NAN_MEMUTIL)/lib/debug ] || mkdir $(NAN_MEMUTIL)/lib/debug
        @../tools/cpifdiff.sh $(DIR)/libmemutil.a $(NAN_MEMUTIL)/lib/
        @../tools/cpifdiff.sh $(DIR)/debug/libmemutil.a $(NAN_MEMUTIL)/lib/debug
        @[ -d $(NAN_MEMUTIL)/lib/debug ] || mkdir $(NAN_MEMUTIL)/lib/debug
        @../tools/cpifdiff.sh $(DIR)/libmemutil.a $(NAN_MEMUTIL)/lib/
        @../tools/cpifdiff.sh $(DIR)/debug/libmemutil.a $(NAN_MEMUTIL)/lib/debug
+ifeq ($(OS),darwin)
+       ranlib $(NAN_MEMUTIL)/lib/libmemutil.a
+       ranlib $(NAN_MEMUTIL)/lib/debug/libmemutil.a
+endif
        @../tools/cpifdiff.sh *.h $(NAN_MEMUTIL)/include/
 
        @../tools/cpifdiff.sh *.h $(NAN_MEMUTIL)/include/