help-make
[Top][All Lists]
Advanced

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

irregularities with --no-builtin-variables


From: Reto
Subject: irregularities with --no-builtin-variables
Date: Sun, 26 Dec 2021 04:46:56 +0100

Hi,

I met some (for me) surprising result with the following makefile:

```
MAKEFLAGS += --no-builtin-rules
MAKEFLAGS += --no-builtin-variables

RM ?= hello
HAMSTER ?= world

all:
        echo ${RM}
        echo ${HAMSTER}
```

I'd expect that to print out "hello" and "world" (plus the usual command
repetition)

However I get this:
```
echo

echo world
world
```

Meaning the ?= assignment of RM was completely ignored, even though the
variable should not exists after --no-builtin-variables.

Is this a bug or am I missing something from the docs?

Kind regards,
Reto

PS: I'm not subscribed to the list, please sent the reply directly to me



reply via email to

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