From: Ian Jackson Date: Sun, 17 Nov 2019 01:21:51 +0000 (+0000) Subject: subdirmk: Fix bug when target in subdir exists X-Git-Tag: v0.6.0~251^2~7 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=28aa3f2c1bb682f2e65f9ca6a73d06f7adf18a98;p=secnet.git subdirmk: Fix bug when target in subdir exists If you try to make a file that exists, the % rule doesn't seem to match. But providing the dependency for all of $(MAKCMDGOALS) works. We have to mention `all' explicitly because it might not appear in $(MAKECMDGOALS). Signed-off-by: Ian Jackson --- diff --git a/generate b/generate index f46747d..1787546 100755 --- a/generate +++ b/generate @@ -99,7 +99,7 @@ sub write_makefile ($$) { my $cd = $depth ? join('/', ('..',) x $depth) : '.'; o <