Re: Errors in 6.3.1 and 7.2 Syntax of Conditionals
Paul Smith <[email protected]> Sun, 24 May 2026 11:05:52 -0400
| Newsgroups | gmane.comp.gnu.make.bugs |
|---|---|
| Organization | GNU's Not Linux! |
| Message-ID | <[email protected]> |
On Thu, 2026-04-23 at 01:18 -1000, Mikey Yosh wrote: > 6.3.1 Substitution References=C2=A0passes the literal string "var" into > patsubst instead of expanding the variable. This was fixed in the documentation source; thanks! > 7.2 Syntax of Conditionals claims that there are four different > directives but goes on to list five of them: > > The syntax of the=C2=A0=C2=A0is the same whether the conditional is sim= ple or > > complex; after an=C2=A0else=C2=A0or not. There are four different direc= tives > > that test different conditions. Here is a table of them: > > ifeq (,=C2=A0) 1 > > ifeq '' '' 2 > > ifeq "" "" 3 > > ifeq "" '' 4 > > ifeq '' "" 5? There's some confusion in the docs; the four directives in question are ifeq, ifneq, ifdef, and ifndef. This text is not talking about the different quoting formats for each directive. It could be made clearer so I will do so; thanks. --=20 Paul D. Smith <[email protected]> Find some GNU Make tips at: https://www.gnu.org http://make.mad-scientist.net "Please remain calm...I may be mad, but I am a professional." --Mad Scientist