On Mon, Aug 19, 2024 at 06:03:07PM +0200, Vegard Nossum wrote: > I'm not really sure if this is correct as I'm not sure under which > circumstances the files tested for with $(wildcard) would NOT be > present. I'm not even sure if this is the right approach to take. > > However, it _should_ keep working the same as before for regular > 'make' invocations and is necessary for 'make --dry-run' to work. This might become interesting. Makefile.modpost is called in several different situations (e.g. in-tree kernel build, single target builds, out-of-tree module builds), and if we want to get full shell script output with --dry-run for all these situations, this probably has to be refactored in more depth. Kind regards, Nicolas