Re: [RFC PATCH 06/11] kbuild: set $dry_run when running in --dry-run mode

2024-11-02 Thread Nicolas Schier
On Mon, Aug 19, 2024 at 06:03:03PM +0200 Vegard Nossum wrote: > Add a convenience variable that allows us to use 'ifdef dry_run...endif' > in Makefiles or '[ -v dry_run ]' in shell scripts to test whether make > was invoked with '-n'. > > See [1] for an explanation of this particular construction.

[RFC PATCH 06/11] kbuild: set $dry_run when running in --dry-run mode

2024-08-19 Thread Vegard Nossum
Add a convenience variable that allows us to use 'ifdef dry_run...endif' in Makefiles or '[ -v dry_run ]' in shell scripts to test whether make was invoked with '-n'. See [1] for an explanation of this particular construction. [1]: https://www.gnu.org/software/make/manual/make.html#Testing-Flags