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:
Shreyas Chand 2019-01-15 22:59:49 -08:00 committed by GitHub
parent 79f35133f0
commit f2583a9960
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -8,8 +8,8 @@ category: CLI
## Var assignment
```makefile
uglify = $(uglify) # assignment
compressor := $(uglify) # lazy assignment
uglify = $(uglify) # assignment (right hand side is evaluated when variable is used)
compressor := $(uglify) # immediate assignment (right hand side is evaluated at assignment)
prefix ?= /usr/local # safe assignment
```