From: Ian Jackson Date: Sun, 10 Nov 2019 13:32:37 +0000 (+0000) Subject: WIP PART OF SUBDIR X-Git-Tag: subdirmk/0.1~130 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?p=subdirmk.git;a=commitdiff_plain;h=0f76ff6232060fa6ac511061ce4e0bd859c9b61d;hp=2f80e8623b4712dbe0f46963f7aed08ec4645473 WIP PART OF SUBDIR --- diff --git a/build-aux/subdirmk-setup b/build-aux/subdirmk-setup index 9f3c8c6..6822fe1 100644 --- a/build-aux/subdirmk-setup +++ b/build-aux/subdirmk-setup @@ -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(); }