fixed a bug when failed to match a filename with '-'.
authorGengbin Zheng <gzheng@illinois.edu>
Sun, 28 Sep 2003 03:40:20 +0000 (03:40 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Sun, 28 Sep 2003 03:40:20 +0000 (03:40 +0000)
src/scripts/dep.pl

index cec14b5495c484ff1a2ffe6615855760b2718e38..4076728534b5a89fd05020cba03b2b156c2e5c6b 100755 (executable)
@@ -12,7 +12,7 @@ $n = @dontprint;
 while (<>) {
 # if line ends with : it is the start of a dependency
   chop;
-  if ( ($target,$other) = /([a-zA-Z0-9_]*\.o:)(.*)$/ ) {
+  if ( ($target,$other) = /([a-zA-Z0-9_-]*\.o:)(.*)$/ ) {
     print $target;
     $go=1;
     $first=1;