1
0
mirror of https://github.com/onkelbeh/cheatsheets.git synced 2026-08-16 14:04:47 +02:00

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

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