s/\s+$//;
next if /^$/;
- if (/^(\w+)\s*=>\s*(\w+)\s*:\s*(.*)$/) {
+ if (/^([\w.]+)\s*=>\s*([\w.]+)\s*:\s*(.*)$/) {
$rules{$2}{$1} = $3;
} elsif (/^($var_re)\s*=\s*(.*)$/) {
$vars{$1} = expand($2);
for my $ofile (@ARGV) {
my $ofound = 0;
for my $oext (keys %rules) {
- if ($ofile =~ /^(.*)\.$oext$/) {
+ my $oext_re = $oext;
+ $oext_re =~ s/\./\\./g;
+ if ($ofile =~ /^(.*)\.$oext_re$/) {
my $base = $1;
my $ifound = 0;
for my $iext (keys %{$rules{$oext}}) {