From da3e5ae284525639d968c377309189acf8065ee2 Mon Sep 17 00:00:00 2001 From: Marti Raya Morena Date: Wed, 25 Oct 2023 17:41:09 +0200 Subject: [PATCH 1/2] Now submodules are captured --- bin/mkmf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/mkmf b/bin/mkmf index 22cd9b9..dda1b06 100755 --- a/bin/mkmf +++ b/bin/mkmf @@ -378,7 +378,7 @@ sub scanfile_for_keywords { $obj_of_module{$module} = $object; } } - if ( $line =~ /^\s*submodule\s+\((\s*\w*\s*)\)\s+(\w*)/ix ) { + if ( $line =~ /submodule\((.*?)\) (.*)/) { # Submodules depend on the parent module, but not vice versa # $1: parent module name # $2: submodule name From 978df705147f3b1a2db578ca39b2190336c17dd5 Mon Sep 17 00:00:00 2001 From: Marti Raya Morena Date: Wed, 25 Oct 2023 18:05:29 +0200 Subject: [PATCH 2/2] Now it works in the case submodule(A) B --- bin/mkmf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/mkmf b/bin/mkmf index dda1b06..7c6d6d9 100755 --- a/bin/mkmf +++ b/bin/mkmf @@ -378,7 +378,7 @@ sub scanfile_for_keywords { $obj_of_module{$module} = $object; } } - if ( $line =~ /submodule\((.*?)\) (.*)/) { + if ( $line =~ /^\s*submodule\s*+\((\s*\w*\s*)\)\s+(\w*)/ix) { # Submodules depend on the parent module, but not vice versa # $1: parent module name # $2: submodule name