Correct description of ":=" and "=" operators
The description of the ":=" and "=" assignment operators were flipped. As documented in the GNU make manual (https://www.gnu.org/software/make/manual/make.html#Reading-Makefiles), the ":=" assignment operatory is the immediate assignment operation and "=" is the deferred assignment operation. This change switches the descriptions to correspond to the correct operator and augments the description to clarify the behaviour.
This commit is contained in:
parent
79f35133f0
commit
f2583a9960
|
@ -8,8 +8,8 @@ category: CLI
|
||||||
## Var assignment
|
## Var assignment
|
||||||
|
|
||||||
```makefile
|
```makefile
|
||||||
uglify = $(uglify) # assignment
|
uglify = $(uglify) # assignment (right hand side is evaluated when variable is used)
|
||||||
compressor := $(uglify) # lazy assignment
|
compressor := $(uglify) # immediate assignment (right hand side is evaluated at assignment)
|
||||||
prefix ?= /usr/local # safe assignment
|
prefix ?= /usr/local # safe assignment
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue