Hi Paul!
On 10/25/21 10:32 PM, Paul Smith wrote:
On Mon, 2021-10-25 at 22:28 +0200, Alejandro Colomar (man-pages) wrote:
Since I use '--warn-undefined-variables', and also to help
readability to someone who may not know about this usage and may
wonder what does that $(V) mean, I used the following:
V :=
$(V).SILENT:
Looks good.
Something you might consider is using:
V ?=
instead of ":=" which would allow someone to run:
V=1 make
successfully (or put it into the environment in some other way).
Hmmm. I didn't consider that case. Thanks!
I recently replaced all of my ?= where I expected that a variable may be
set in the command line by :=, just because I noticed that I could set
it anyway in the arguments and it would work equally fine, so := would
probably simplify make's (and the human parser's) checks, but this case
seems a valid argument for ?=.
Cheers,
Alex
--
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/