Match variable assignment behavior

A variable assignment records text for use by GNU make. While reviewing a project's Makefile, match each operator to its behavior, including when expansion occurs. Assume ordinary assignments with no command-line variable definitions or override directives.

Match each term
A.

Define the variable only if it is undefined; an existing empty value prevents the assignment.

B.

Add text to the existing value, preserving its expansion behavior; if undefined, create a deferred value.

C.

Store the supplied text and expand its variable references whenever the stored value is used.

D.

Expand the supplied text immediately and store the resulting value.

+=

=

:=

?=

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Makefiles Questions: