Fixed bug in adding Makefrags as a depenendency for files to be recompiled
authorKevin Klues <klueska@eecs.berkeley.edu>
Wed, 26 Aug 2009 01:00:53 +0000 (18:00 -0700)
committerKevin Klues <klueska@eecs.berkeley.edu>
Wed, 26 Aug 2009 01:00:53 +0000 (18:00 -0700)
scripts/mergedep.pl

index 600b87d..7accc2b 100644 (file)
@@ -56,7 +56,11 @@ sub readdeps {
                                $slash = $2;
                        }
                        #print "DEPENDENCY [[$target]]: [[$deplines]]\n";
-                       $dephash{$target} = " ".makedirname($filename)."/Makefrag".$deplines;
+                       my $new_deplines = $deplines;
+                       if($use_filename) {
+                               my $new_deplines = " ".makedirname($filename)."/Makefrag".$deplines;
+                       }
+                       $dephash{$target} = $new_deplines;
                } elsif (/^[#]?[ \t]*$/) {
                        # ignore blank lines and comments
                } else {