Tests depend on everything.
[openssl.git] / Configurations / unix-Makefile.tmpl
index fe524e1..a663589 100644 (file)
@@ -151,7 +151,7 @@ build_engines: $(ENGINES)
 build_apps: $(PROGRAMS) $(SCRIPTS)
 build_tests: $(TESTPROGS)
 
-test tests: build_tests rehash
+test tests: build_tests build_apps build_engines build_libs rehash
        ( cd test; \
          SRCTOP=../$(SRCDIR) \
          BLDTOP=../$(BLDDIR) \
@@ -882,7 +882,8 @@ EOF
                            rel2abs($config{builddir}));
       return <<"EOF";
 $script : $sources
-       \$(PERL) "-I\$(BLDDIR)" -Mconfigdata "$dofile" $sources > "$script"
+       \$(PERL) "-I\$(BLDDIR)" -Mconfigdata "$dofile" \\
+           "-o$target{build_file}" $sources > "$script"
        chmod a+x $script
 EOF
   }