chiark / gitweb /
further refactor filter_subdir_mk, moving $srcdir, nfc
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 13 Nov 2019 15:15:41 +0000 (15:15 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 13 Nov 2019 15:15:41 +0000 (15:15 +0000)
subdirmk/generate

index 56bfe54..845c9be 100755 (executable)
@@ -200,10 +200,10 @@ sub filter_subdir_mk ($$$$$) {
        my ($f, $enoentok) = @_;
        process_input_mk($dir_prefix, $dir_suffix, $dir_name,
                         $var_prefix, $targets,
-                        $f, \$esclit, $enoentok);
+                        "${srcdir}/$f", \$esclit, $enoentok);
     };
-    for my $f ("${srcdir}/${dir_prefix}Subdir.mk.in",
-              "${srcdir}/Perdir.mk.in") {
+    for my $f ("${dir_prefix}Subdir.mk.in",
+              "Perdir.mk.in") {
        $pi->($f, 0);
     }
 }