Only copy headers if they've changed.
[openssl.git] / util / mk1mf.pl
index 24ee3120dc66b51b8882cfa70b30e1eebf85fd6c..e0e8d572436d4e5e3fb1c48d0aaa16a0430b9ce5 100755 (executable)
@@ -1353,7 +1353,7 @@ sub do_copy_rule
                if ($n =~ /bss_file/)
                        { $pp=".c"; }
                else    { $pp=$p; }
-               $ret.="$to${o}$n$pp: \$(SRC_D)$o$_$pp $to\n\t\$(CP) \"\$(SRC_D)$o$_$pp\" \"$to${o}$n$pp\"\n\n";
+               $ret.="$to${o}$n$pp: \$(SRC_D)$o$_$pp $to\n\t\$(SRC_D)${o}util${o}copy-if-different.pl \"\$(SRC_D)$o$_$pp\" \"$to${o}$n$pp\"\n\n";
                }
        return($ret);
        }