]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Make sure that static libraries are installed and ranlib'd, as needed.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Tue, 30 Jul 2002 19:09:27 +0000 (19:09 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Tue, 30 Jul 2002 19:09:27 +0000 (19:09 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@2585 7a7537e8-13f0-0310-91df-b6672ffda945

cups/Makefile
filter/Makefile

index 35e031db4264259de6afd070e9c8a0b82ef7fe13..126a1eb9197410bea4dc4fa7fc9afce87de13ccf 100644 (file)
@@ -1,5 +1,5 @@
 #
-# "$Id: Makefile,v 1.73 2002/05/23 20:07:34 mike Exp $"
+# "$Id: Makefile,v 1.74 2002/07/30 19:09:25 mike Exp $"
 #
 #   Support library Makefile for the Common UNIX Printing System (CUPS).
 #
@@ -81,19 +81,18 @@ install:    all     installhdrs
        $(INSTALL_DIR) $(LIBDIR)
        $(INSTALL_LIB) $(LIBCUPS) $(LIBDIR)
        if test $(LIBCUPS) = "libcups.so.2" -o $(LIBCUPS) = "libcups.sl.2"; then \
-               $(INSTALL_LIB) libcups.a $(LIBDIR); \
                $(RM) $(LIBDIR)/`basename $(LIBCUPS) .2`; \
                $(LN) $(LIBCUPS) $(LIBDIR)/`basename $(LIBCUPS) .2`; \
        fi
        if test $(LIBCUPS) = "libcups.2.dylib"; then \
                $(STRIP) -x $(LIBDIR)/$(LIBCUPS); \
-               $(INSTALL_LIB) libcups.a $(LIBDIR); \
                $(RM) $(LIBDIR)/libcups.dylib; \
                $(LN) $(LIBCUPS) $(LIBDIR)/libcups.dylib; \
        fi
-       if test $(LIBCUPS) = "libcups_s.a"; then \
+       if test $(LIBCUPS) != "libcups.a"; then \
                $(INSTALL_LIB) libcups.a $(LIBDIR); \
        fi
+       $(RANLIB) $(LIBDIR)/libcups.a
 
 installhdrs:
        $(INSTALL_DIR) $(INCLUDEDIR)/cups
@@ -212,5 +211,5 @@ include Dependencies
 
 
 #
-# End of "$Id: Makefile,v 1.73 2002/05/23 20:07:34 mike Exp $".
+# End of "$Id: Makefile,v 1.74 2002/07/30 19:09:25 mike Exp $".
 #
index 54be2f72eedd34684518bfa99754513833855f7e..52cf2480ed79f94763921a9d4734b8a6cc4dd5ff 100644 (file)
@@ -1,5 +1,5 @@
 #
-# "$Id: Makefile,v 1.65 2002/06/14 19:39:17 mike Exp $"
+# "$Id: Makefile,v 1.66 2002/07/30 19:09:27 mike Exp $"
 #
 #   Filter makefile for the Common UNIX Printing System (CUPS).
 #
@@ -45,7 +45,7 @@ OBJS  =       $(HPGLOBJS) $(IMAGEOBJS) $(FORMOBJS) \
 # Make all targets...
 #
 
-all:   $(TARGETS)
+all:   $(TARGETS) libcupsimage.a
 
 
 #
@@ -85,6 +85,10 @@ install:     all installhdrs
                $(RM) $(LIBDIR)/libcupsimage.dylib; \
                $(LN) $(LIBCUPSIMAGE) $(LIBDIR)/libcupsimage.dylib; \
        fi
+       -if test $(LIBCUPSIMAGE) != "libcupsimage.a"; then \
+               $(INSTALL_LIB) libcupsimage.a $(LIBDIR); \
+       fi
+       $(RANLIB) $(LIBDIR)/libcupsimage.a
 
 installhdrs:
        $(INSTALL_DIR) $(INCLUDEDIR)/cups
@@ -245,5 +249,5 @@ include Dependencies
 
 
 #
-# End of "$Id: Makefile,v 1.65 2002/06/14 19:39:17 mike Exp $".
+# End of "$Id: Makefile,v 1.66 2002/07/30 19:09:27 mike Exp $".
 #