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

index ea9cb5b8b36230fd2b9e3d536416b8a44708a5bf..7522c07051831f833157b881ef5382b1b056c8a3 100755 (executable)
@@ -66,10 +66,10 @@ sub write_makefile ($$) {
     my ($dir_prefix,$depth) = @_;
     start_output_file("${dir_prefix}Makefile");
     my $cd = $depth ? join('/', ('..',) x $depth) : '.';
     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
 default: all
-%%:
-       $(MAKE) -C %s %s$@
+%:
+       \$(MAKE) -C $cd ${dir_prefix}$@
 END
 }
 
 END
 }