chiark
/
gitweb
/
~ian
/
subdirmk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e396ca1
)
WIP
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 10 Nov 2019 20:55:50 +0000
(20:55 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 10 Nov 2019 20:55:50 +0000
(20:55 +0000)
build-aux/subdirmk-setup
patch
|
blob
|
history
diff --git
a/build-aux/subdirmk-setup
b/build-aux/subdirmk-setup
index 0c451c84acf23cfd978f5492f87e4ae7f458ceef..257479d32c97d8bba4683a140500ce1b86b6c692 100755
(executable)
--- a/
build-aux/subdirmk-setup
+++ b/
build-aux/subdirmk-setup
@@
-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);