Expand immediately at assignment time.
Section: Variables and assignment
Simple variable
makefile
makefile
CURDIR_ABS := $(shell pwd)Explanation
`:=` is useful when you want shell commands or functions evaluated once.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Variables and assignment