chiark / gitweb /
WIP
[secnet.git] / 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) : '.';
-    o sprintf <<'END', $cd, $dir_prefix;
+    o <<END;
 default: all
-%%:
-       $(MAKE) -C %s %s$@
+%:
+       \$(MAKE) -C $cd ${dir_prefix}$@
 END
 }