[bug #48643] Irrelevant targets can confuse make on which pattern rule to select.

2022-01-27 Thread Dmitry Goncharov
Follow-up Comment #37, bug #48643 (project make): > The first one is that the output appears even if make ultimately decides that there is no way to build the target. i think, this is good. Hopefully, this will prevent users from writing makefiles that depend on compat search. > When I put my e

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

2022-01-27 Thread Alejandro Colomar (man-pages)
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 sh

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

2022-01-27 Thread Martin Dorey
That already seems to have been fixed: martind@sirius:~/tmp/make-undefined-variables-2022-01-27$ cat Makefile MAKEFLAGS += --warn-undefined-variables a: $(foo); touch $@ martind@sirius:~/tmp/make-undefined-variables-2022-01-27$ ~/download/make/make --version GNU Make 4.3.90 Built for x86_64-pc-l