Assign and use make variable

Here we see assigning the value to a variable called CC and we use $(CC) to retrieve it.

CC := ccache llvm-g++ -std=c++14 -MMD -g echo $(CC)

A trick to define a variable conditionally, so it only defined when the variable is not defined in the environment is this:

MAC_BUILD ?= default

Related pages