Major reworking to integrate cache coloring into the kernel.
[akaros.git] / scripts / mergedep.pl
old mode 100755 (executable)
new mode 100644 (file)
index 1730d53..f942ed1
@@ -30,9 +30,10 @@ sub readdeps {
        open(DEPFILE, $filename) or return 0;
        while (<DEPFILE>) {
                if (/([^:]*):([^\\:]*)([\\]?)$/) {
-                       my $target = $1;
+                       my $target = $filename;
                        my $deplines = $2;
                        my $slash = $3;
+                       $target =~ s/\.d/\.o/;
                        while ($slash ne '') {
                                $_ = <DEPFILE>;
                                defined($_) or die