Merge pull request #991 from chandsie/patch-1

Correct description of ":=" and "=" operators
This commit is contained in:
Rico Sta. Cruz 2019-01-20 14:49:25 +08:00 committed by GitHub
commit a930009433
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -8,11 +8,13 @@ category: CLI
## Var assignment
```makefile
uglify = $(uglify) # assignment
compressor := $(uglify) # lazy assignment
uglify = $(uglify) # lazy assignment
compressor := $(uglify) # immediate assignment
prefix ?= /usr/local # safe assignment
```
`=` expressions are only evaluated when they're being used.
## Magic variables
```makefile