Do make rehash automatically at make test.
[openssl.git] / Makefile.org
index 23be9bc14bab65644efa2c51c2df281831fa931e..09648b2c20f8d1ccdcd847b95fa431cbbefee3eb 100644 (file)
@@ -4,6 +4,10 @@
 
 VERSION = 0.9.2b
 PLATFORM=dist
+INSTALLTOP=/usr/local/ssl
+
+# Do not edit this manually. Use Configure --openssldir=DIR do change this!
+OPENSSLDIR=/usr/local/ssl
 
 # RSAref  - Define if we are to link with RSAref.
 # NO_IDEA - Define to build without the IDEA algorithm
@@ -39,6 +43,7 @@ PLATFORM=dist
 CC= gcc
 #CFLAG= -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall -Wuninitialized -DSHA1_ASM -DMD5_ASM -DRMD160_ASM
 CFLAG= -DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall -DSHA1_ASM -DMD5_ASM -DRMD160_ASM
+DEPFLAG= 
 PEX_LIBS= -L. -L.. -L../.. -L../../..
 EX_LIBS= 
 AR=ar r
@@ -139,9 +144,6 @@ SDIRS=  \
        buffer bio stack lhash rand err objects \
        evp asn1 pem x509 x509v3 conf txt_db pkcs7 pkcs12 comp
 
-# Do not edit this manually. Use util/ssldir.pl do change this!
-INSTALLTOP=/usr/local/ssl
-
 MAKEFILE= Makefile.ssl
 MAKE=     make -f Makefile.ssl
 
@@ -236,7 +238,7 @@ rehash:
 
 test:   tests
 
-tests:
+tests: rehash
        @(cd test && echo "testing..." && \
        $(MAKE) CC='${CC}' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' SDIRS='${SDIRS}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' AR='${AR}' tests );
        @apps/openssl version -a
@@ -245,7 +247,7 @@ depend:
        @for i in $(DIRS) ;\
        do \
        (cd $$i && echo "making dependancies $$i..." && \
-       $(MAKE) SDIRS='${SDIRS}' depend ) || exit 1; \
+       $(MAKE) SDIRS='${SDIRS}' DEPFLAG='${DEPFLAG}' depend ) || exit 1; \
        done;
 
 lint:
@@ -263,11 +265,7 @@ tags:
        done;
 
 errors:
-       @for i in $(DIRS) ;\
-       do \
-       (cd $$i && echo "making errors in $$i..." && \
-       $(MAKE) SDIRS='${SDIRS}' PERL='${PERL}' errors ) || exit 1; \
-       done;
+       perl util/mkerr.pl -recurse -write
 
 tar:
        @gtar --no-recursion -cvf - \
@@ -290,14 +288,14 @@ dist_pem_h:
 install: all
        @-mkdir -p $(INSTALLTOP)/bin 2>/dev/null
        @-mkdir -p $(INSTALLTOP)/lib 2>/dev/null
-       @-mkdir -p $(INSTALLTOP)/include 2>/dev/null
        @-mkdir -p $(INSTALLTOP)/include/openssl 2>/dev/null
-       @-mkdir -p $(INSTALLTOP)/certs 2>/dev/null
-       @-mkdir -p $(INSTALLTOP)/private 2>/dev/null
+       @-mkdir -p $(OPENSSLDIR)/certs 2>/dev/null
+       @-mkdir -p $(OPENSSLDIR)/private 2>/dev/null
+       @-mkdir -p $(OPENSSLDIR)/lib 2>/dev/null
        @for i in $(DIRS) ;\
        do \
        (cd $$i; echo "installing $$i..."; \
-       $(MAKE) CC='${CC}' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' EX_LIBS='${EX_LIBS}' SDIRS='${SDIRS}' install ); \
+       $(MAKE) CC='${CC}' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' OPENSSLDIR='${OPENSSLDIR}' EX_LIBS='${EX_LIBS}' SDIRS='${SDIRS}' install ); \
        done
        @for i in $(LIBS) ;\
        do \