On Thu, Jan 20, 2022 at 2:26 AM Paul Smith <psm...@gnu.org> wrote:

> The "+" prefix added to a recipe line tells make to run that recipe
> line, even if "-n" is given on the command line.

Thanks for pointing it out.

> I personally don't see a good reason for adding "+" to the clean
> commands in the example from the StackOverflow answer; I wouldn't want
> my clean rule to run if I ran "make -n"!  But, maybe if I knew more
> about the larger context of that part of the makefile it would make
> sense.

See here [1] for the complete recipe of the above-mentioned Makefile script.

[1] https://github.com/torvalds/linux/blob/master/scripts/Makefile.clean

HZ

Reply via email to