chiark / gitweb /
WIP PART OF SUBDIR
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 10 Nov 2019 13:32:37 +0000 (13:32 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 10 Nov 2019 13:32:37 +0000 (13:32 +0000)
build-aux/subdirmk-setup

index 9f3c8c6..6822fe1 100644 (file)
@@ -24,8 +24,8 @@ END
 
 sub process_subdir ($$) {
     my ($subdir) = @_;
-    my $d
-    write_makefile($subdir);
+    my $depth = $subdir eq '.' ? 0 : scalar split m{/+}, $subdir;
+    write_makefile($subdir,$depth);
     filter_subdir_mk();
 }