Print the value of a named variable:
make echo-%
To print the value of PROJECT_NAME:
make echo-PROJECT_NAME
Echo EXPR from make’s point of view:
make eval
make eval EXPR=’$(PROJECT_NAME)-$(PROJECT_VERSION)’
Dump interesting variables:
make vardump
Interesting means that the variable was either referenced by a makefile on the MAKEFILE_LIST or its name matches the pattern INTERESTING_VARS