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
(from parent 1:
b16a900
)
WIP
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 10 Nov 2019 20:40:23 +0000
(20:40 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 10 Nov 2019 20:40:23 +0000
(20:40 +0000)
build-aux/subdirmk-setup
patch
|
blob
|
history
diff --git
a/build-aux/subdirmk-setup
b/build-aux/subdirmk-setup
index ea9cb5b8b36230fd2b9e3d536416b8a44708a5bf..7522c07051831f833157b881ef5382b1b056c8a3 100755
(executable)
--- a/
build-aux/subdirmk-setup
+++ b/
build-aux/subdirmk-setup
@@
-66,10
+66,10
@@
sub write_makefile ($$) {
my ($dir_prefix,$depth) = @_;
start_output_file("${dir_prefix}Makefile");
my $cd = $depth ? join('/', ('..',) x $depth) : '.';
- o
sprintf <<'END', $cd, $dir_prefix
;
+ o
<<END
;
default: all
-%
%
:
-
$(MAKE) -C %s %s
$@
+%:
+
\$(MAKE) -C $cd ${dir_prefix}
$@
END
}