NAME := foo test: echo "name is $(NAME)" $ make test echo name is foo name is foo $ make test NAME=bar echo name is bar name is bar