chiark / gitweb /
WIP
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 10 Nov 2019 20:55:50 +0000 (20:55 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 10 Nov 2019 20:55:50 +0000 (20:55 +0000)
build-aux/subdirmk-setup

index 0c451c84acf23cfd978f5492f87e4ae7f458ceef..257479d32c97d8bba4683a140500ce1b86b6c692 100755 (executable)
@@ -78,7 +78,7 @@ sub write_makefile ($$) {
     o <<END;
 default: all
 %:
-       \$(MAKE) -C $cd ${dir_prefix}$@
+       \$(MAKE) -C $cd ${dir_prefix}\$@
 END
 }
 
@@ -153,7 +153,7 @@ sub process_subtree ($$) {
     my $dir_prefix = join '', map { "$_/" } @$path;
     my $dir_suffix = join '', map { "/$_" } @$path;
     my $dir_name = join '/', @$path ? @$path : '.';
-    my $var_prefix = map { "${_}_" } @$path ? @$path : qw(TOP);
+    my $var_prefix = join '', map { "${_}_" } @$path ? @$path : qw(TOP);
 
     write_makefile($dir_prefix, scalar @$path);