Have dofile.pl say where it was run, for real this time
[openssl.git] / Configurations / descrip.mms.tmpl
index ef745edc1ed7fd8d4cafec8433c0b6d1a170314a..74fec4c0039a1386ab79f8b3ef9be0c173ce53d6 100644 (file)
@@ -200,9 +200,14 @@ NODEBUG=@
 
 # The main targets ###################################################
 
-all : descrip.mms, $(LIBS), $(ENGINES), $(PROGRAMS), $(SCRIPTS), $(TESTPROGS)
+all : descrip.mms, build_libs, build_engines, build_apps
 
-test tests : $(TESTPROGS), rehash
+build_libs : $(LIBS)
+build_engines : $(ENGINES)
+build_apps : $(PROGRAMS), $(SCRIPTS)
+build_tests : $(TESTPROGS)
+
+test tests : build_tests, rehash
         SET DEFAULT [.test]{- move("test") -}
         DEFINE SRCTOP {- sourcedir() -}
         DEFINE BLDTOP {- builddir() -}
@@ -290,7 +295,7 @@ install_dev : check_INSTALLTOP
                 map { "COPY/PROT=W:RE $_.EXE ossl_installroot:['arch'.LIB]" }
                 map { $unified_info{sharednames}->{$_} || () } 
                 @{$unified_info{libraries}}) -}
-        @ {- output_on() -} !
+        @ {- output_on() if $config{no_shared}; "" -} !
 
 install_runtime : check_INSTALLTOP
         @ WRITE SYS$OUTPUT "*** Installing runtime files"
@@ -310,7 +315,7 @@ install_engines : check_INSTALLTOP
         @ WRITE SYS$OUTPUT "*** Installing engines"
         CREATE/DIR ossl_installroot:['arch'.ENGINES]
         COPY/PROT=W:RE [.ENGINES]*.EXE ossl_installroot:['arch'.ENGINES]
-        @ {- output_on() -} !
+        @ {- output_on() if $config{no_shared}; "" -} !
 
 install_config : [.VMS]openssl_startup.com [.VMS]openssl_shutdown.com -
                  check_INSTALLTOP
@@ -624,7 +629,8 @@ EOF
                            rel2abs($config{builddir}));
       return <<"EOF";
 $script : $sources
-        \$(PERL) "-I\$(BUILDDIR)" "-Mconfigdata" $dofile $sources > $script
+        \$(PERL) "-I\$(BUILDDIR)" "-Mconfigdata" $dofile -
+           "-o$target{build_file}" $sources > $script
         SET FILE/PROT=(S:RWED,O:RWED,G:RE,W:RE) $script
         PURGE $script
 EOF