bug-make
[Top][All Lists]
Advanced

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

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


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

Hi,

Consider the following scenario:


$ ls
Makefile
$ cat Makefile
MAKEFLAGS += --warn-undefined-variables

a: $(foo)
        touch $@
$ make
touch a
$ ls
a  Makefile



I'd like make to warn about this.  It took me a while to debug a
Makefile bug, which I thought was not happening, since make should have
warned me.  Isn't this supposed to trigger the warning?

Thanks,

Alex

-- 
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]