Re: [bug #67265] $(file) in commands is executed too early
Tim Murphy <[email protected]> Mon, 30 Jun 2025 18:43:31 +0100
| Newsgroups | gmane.comp.gnu.make.bugs |
|---|---|
| Message-ID | <CACJSg6kPh=yNpQ6x-oY3zHW-frx9acMBMMFnPgDESBQ77At_ew@mail.gmail.com> |
On Mon, 30 Jun 2025 at 18:14, Zack Weinberg <[email protected]> wrote: > > p.s. I do insist that this is a bug, not a feature request. The existing > behavior is strictly less useful than the requested behavior, and > surprising > to boot. If I understand you then you want to use $(file) to get around the commandline length limit? In this case I think you could put the directory in as its own target with an order-only dependency on it. Or you could use $(mkdir) from extramake :-). If the directory is another target then you will ensure it gets done before $(file). Another option is to $(shell mkdir ...) in the body of the script if it doesn't matter to you that the directory is always created. Regards, Tim