X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/d1b55e811584638c9ebb7046e4017bba167bb072..3ca445da2582ecfeb4e71e6bdbcee815a656eecc:/etc/prefix-gnulib-mk diff --git a/etc/prefix-gnulib-mk b/etc/prefix-gnulib-mk index e969663d..3ea9f5bd 100755 --- a/etc/prefix-gnulib-mk +++ b/etc/prefix-gnulib-mk @@ -10,7 +10,7 @@ my $prefix = "lib/"; sub contents ($) { my ($file) = @_; - local $/; # Turn on slurp-mode. + local $/; # Turn on slurp-mode. my $f = new IO::File "< $file" or die "$file"; my $contents = $f->getline or die "$file"; $f->close; @@ -90,7 +90,7 @@ sub prefix ($) # Prefix all the occurrence of files in rules. If there is nothing # after in the :, it's probably a phony target, or a suffix rule. # Don't touch it. - s{^([\w./]+ *: *\w.*)$} + s{^([-\w+/]+\.[-\w.]+ *: *\S.*)$} {prefix_words($1)}gem; # Prefix files in variables.