On Thu, Jan 16, 2003 at 12:13:11PM -0500, Rich Salz wrote:

>>      $(RANLIB) $(LIB) || echo Never mind.

> How about putting a leading minus sign; it's simpler.

Using the minus sign is simpler to write in the Makefile -- but 'make'
will still report an error (and say that it's ignored), which tends to
confuse some users.  From the CVS log for ssl/Makefile.ssl:

revision 1.46
date: 2001/03/09 14:01:42;  author: bodo;  state: Exp;  lines: +1 -2
Instead of telling both 'make' and the user that ranlib
errors can be tolerated, hide the error from 'make'.
This gives shorter output both if ranlib fails and if
it works.

--- Makefile.ssl        26 Feb 2001 10:53:27 -0000      1.45
+++ Makefile.ssl        9 Mar 2001 14:01:42 -0000       1.46
@@ -59,8 +59,7 @@
 
 lib:   $(LIBOBJ)
        $(AR) $(LIB) $(LIBOBJ)
-       @echo You may get an error following this line.  Please ignore.
-       - $(RANLIB) $(LIB)
+       $(RANLIB) $(LIB) || echo Never mind.
        @touch lib
 
 files:


-- 
Bodo Möller <[EMAIL PROTECTED]>
PGP http://www.informatik.tu-darmstadt.de/TI/Mitarbeiter/moeller/0x36d2c658.html
* TU Darmstadt, Theoretische Informatik, Alexanderstr. 10, D-64283 Darmstadt
* Tel. +49-6151-16-6628, Fax +49-6151-16-6036
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to