Add dependency on destination directory.
authorBen Laurie <ben@links.org>
Wed, 27 Feb 2013 04:12:11 +0000 (04:12 +0000)
committerBen Laurie <ben@links.org>
Mon, 4 Mar 2013 14:31:18 +0000 (14:31 +0000)
util/mk1mf.pl

index ad504de..d2013bb 100755 (executable)
@@ -1312,7 +1312,7 @@ sub do_copy_rule
                if ($n =~ /bss_file/)
                        { $pp=".c"; }
                else    { $pp=$p; }
-               $ret.="$to${o}$n$pp: \$(SRC_D)$o$_$pp\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\$(CP) \"\$(SRC_D)$o$_$pp\" \"$to${o}$n$pp\"\n\n";
                }
        return($ret);
        }