From f2583a9960f41a04eebbf96efcd1c31a2f97d214 Mon Sep 17 00:00:00 2001 From: Shreyas Chand Date: Tue, 15 Jan 2019 22:59:49 -0800 Subject: [PATCH] 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. --- makefile.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/makefile.md b/makefile.md index 9718ba0b9..84abeaa1f 100644 --- a/makefile.md +++ b/makefile.md @@ -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 ```