[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What's the meaning of + symbol used in makefile?
From: |
Hongyi Zhao |
Subject: |
Re: What's the meaning of + symbol used in makefile? |
Date: |
Thu, 20 Jan 2022 09:56:49 +0800 |
On Thu, Jan 20, 2022 at 2:26 AM Paul Smith <psmith@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