Subject: [PATCH] Don't create nested target directories automatically

From: goredo <[email-masked]>
Date: Fri, 15 Apr 2022 06:10:58 +0000 (UTC)

It was a concious decision that redo creates target directories. Now, every default*.do file must be aware of file hierarchies, which is quite annoying.

It also doesn't solve your problem, because, now, your default.do file also contains a line like:
`mkdir -p $(dirname $2)`.

This means, the garbage directory is also created for your mistyped target unless you take special precautions in all of your default.do files to limit their scope of directories they are concerned with. (before you call mkdir) You cannot and you don't always want to do this. E.g. in a very general default.o.do to compile a C file.

The general contract with redo is, that the position of the .do file in the directory hierarchy limits its scope.

Regards,
–Michael