RE: GNU Make bug report: broken dry-run functionality with sub-make invocations

2022-03-21 Thread Ambrus Sumegi
rget | tee logs/external_task.log" and proceed to show the output of `make external_target -n` -Original Message- From: Paul Smith Sent: 21 March 2022 14:18 To: Ambrus Sumegi ; bug-make@gnu.org Subject: Re: GNU Make bug report: broken dry-run functionality with sub-make invocations On Mon,

RE: GNU Make bug report: broken dry-run functionality with sub-make invocations

2022-03-21 Thread Ambrus Sumegi
m: Martin Dorey Sent: 17 March 2022 19:27 To: Ambrus Sumegi ; bug-make@gnu.org Subject: Re: GNU Make bug report: broken dry-run functionality with sub-make invocations > the statement after the pipe also gets executed Would you have Make parse the shell command, assuming that SHELL isn't eg

RE: GNU Make bug report: broken dry-run functionality with sub-make invocations

2022-03-18 Thread Ambrus Sumegi
uot; could be expanded to something like "If the line contains a call to $(MAKE), the entire line will still be executed, with the -n option passed to the sub-make instance. Be prepared for side effects of output redirection." -Original Message- From: Paul Smith Sent: 17 March 2

GNU Make bug report: broken dry-run functionality with sub-make invocations

2022-03-17 Thread Ambrus Sumegi
Dear Devs, I stumbled upon a rather rare case where Make produces a false error with the --dry-run switch. I've attached a sample Makefile for reproduction. The output of make main_target with this file is the following: $ make main_target mkdir logs make external_target | tee