Avoid end-less loop when libcrypto.a is manually deleted, but 'make clean'
authorAndy Polyakov <appro@openssl.org>
Wed, 9 Nov 2005 20:41:21 +0000 (20:41 +0000)
committerAndy Polyakov <appro@openssl.org>
Wed, 9 Nov 2005 20:41:21 +0000 (20:41 +0000)
was not executed. It doesn't excuse user from running 'make clean', it
simply avoids process table exhaustion.
PR: 1236
Submitted by: Michael Richardson

crypto/Makefile

index 39f4b2d806d6ceafed2805c74301d26ac842b316..6c9159ff27c4765dbea03e0ab59a9db9614d480c 100644 (file)
@@ -94,10 +94,12 @@ links:
        @$(PERL) $(TOP)/util/mklink.pl ../apps $(APPS)
        @target=links; $(RECURSIVE_MAKE)
 
-lib:   $(LIBOBJ)
+lib:   $(LIB)
+       @touch lib
+
+$(LIB):        $(LIBOBJ)
        $(AR) $(LIB) $(LIBOBJ)
        $(RANLIB) $(LIB) || echo Never mind.
-       @touch lib
 
 shared: buildinf.h lib subdirs
        if [ -n "$(SHARED_LIBS)" ]; then \