Add multi-line flag to regex that needs it. Backpatch to 8.2. Fix from Andreas Zeugsw...
authorAndrew Dunstan <andrew@dunslane.net>
Tue, 15 Apr 2008 16:28:25 +0000 (16:28 +0000)
committerAndrew Dunstan <andrew@dunslane.net>
Tue, 15 Apr 2008 16:28:25 +0000 (16:28 +0000)
src/tools/msvc/Project.pm

index afa733a71a21a53494361260495fafb416e325ff..22beaf720f25d22327170adc847867e8af709cb5 100644 (file)
@@ -259,7 +259,8 @@ sub AddDir
     }
 
     # Match rules that pull in source files from different directories
-    my $replace_re = qr{^([^:\n\$]+\.c)\s*:\s*(?:%\s*: )?\$(\([^\)]+\))\/(.*)\/[^\/]+$};
+    # example: pg_crc.c: $(top_srcdir)/src/backend/utils/hash/pg_crc.c
+    my $replace_re = qr{^([^:\n\$]+\.c)\s*:\s*(?:%\s*: )?\$(\([^\)]+\))\/(.*)\/[^\/]+$}m;
     while ($mf =~ m{$replace_re}m)
     {
         my $match = $1;