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
}