bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BUG] --warn-undefined-variable is not triggered in prerequisites


From: Alejandro Colomar (man-pages)
Subject: Re: [BUG] --warn-undefined-variable is not triggered in prerequisites
Date: Fri, 28 Jan 2022 23:42:04 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1

Hi Martin,

On 1/28/22 02:42, Martin Dorey wrote:
> That already seems to have been fixed:
Hmm, it seems that the bug is only triggered if the option is passed in
the Makefile itself with MAKEFLAGS+=...


I haven't tested make git HEAD, but I bet it's probably reproducible
there too.  See below.

Thanks,

Alex



$ make --version
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
$ dpkg -l make | grep make
ii  make           4.3-4.1      amd64        utility for directing
compilation
$ cat Makefile
MAKEFILE += --warn-undefined-variables

.PHONY: a
a: $(foo)
        $(info a)
        @:
$ make
a
$ make --warn-undefined-variables
Makefile:4: warning: undefined variable 'foo'
a



-- 
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]