Correct file extension regex in make_makefile_swig

Refs #426
This commit is contained in:
Derek Bankieris 2017-05-23 10:43:20 -05:00
parent 2edd7b986d
commit 56bdafc68b

View File

@ -194,7 +194,7 @@ all: \$(TRICK_FIXED_PYTHON)
SWIG_I =" ;
foreach my $file ( @files_to_process ) {
(my $swig_file = $file) =~ s/\.[^.]*/_py.i/ ;
(my $swig_file = $file) =~ s/\.[^.]*$/_py.i/ ;
print MAKEFILE " \\\n build$swig_file" ;
$swig_file =~ s/i$/o/ ;
print PY_LINK_LIST "build$swig_file\n" ;