Install various scripts to $(OPENSSLDIR)/misc instead of $(INSTALLTOP)/bin.
[openssl.git] / tools / Makefile.ssl
index 23e767c841efd5b0f0084b83d91b12820511ffa0..959d752c9f341a94346883be055d8de66e4c48da 100644 (file)
@@ -16,7 +16,8 @@ CFLAGS= $(INCLUDES) $(CFLAG)
 
 GENERAL=Makefile.ssl
 TEST=
-APPS= c_hash c_info c_issuer c_name c_rehash
+APPS= c_rehash
+MISC_APPS= c_hash c_info c_issuer c_name
 
 all:
 
@@ -25,10 +26,14 @@ install:
        do  \
        (cp $$i $(INSTALLTOP)/bin/$$i; \
        chmod 755 $(INSTALLTOP)/bin/$$i ); \
+       @for i in $(MISC_APPS) ; \
+       do  \
+       (cp $$i $(OPENSSLTOP)/misc/$$i; \
+       chmod 755 $(OPENSSLTOP)/misc/$$i ); \
        done;
 
 files:
-       perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
+       $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
 
 links:
        @$(TOP)/util/point.sh Makefile.ssl Makefile
@@ -42,7 +47,7 @@ errors:
 depend:
 
 dclean:
-       perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
+       $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
        mv -f Makefile.new $(MAKEFILE)
 
 clean: